Re: id field

David Calinski <[email protected]> Tue, 11 Nov 2003 11:43:25 +0100
Newsgroups gmane.comp.tools.memaid.devel
Message-ID <[email protected]>
On Tuesday 11 of November 2003 10:33, Fernando Antonio Mac Cracken Cezar 
wrote:

> Talking the system time as id number may lead 2 or more
> cards to have the same id. If 2 cards are created in a given
> short period of time, the 2 successive system time calls may delivery
> the same value (this short period is SO dependent).

Is anybody able to pass through 2 new items, and pick 2 grades for them, in 
just 1 second?

> My suggestion is to take a random number and make a bit operation
> on top of the system time.

That *can* result in a 2 same id, can't it?

DC



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/