Re: id field
Fernando Antonio Mac Cracken Cezar <[email protected]> Tue, 11 Nov 2003 10:33:45 +0100
| Newsgroups | gmane.comp.tools.memaid.devel |
|---|---|
| Message-ID | <1068543225.3964.14.camel@corsario> |
Anything that is unique would be fine for me. 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). My suggestion is to take a random number and make a bit operation on top of the system time. On Tue, 2003-11-11 at 10:34, David Calinski wrote: > On Tuesday 11 of November 2003 08:57, Fernando Antonio Mac Cracken Cezar > wrote: > > The field ID would be of extreme use for me when synchronizing > > Palm and PC. > > Will a long number (as an ID; in fact time of creating an item in Unix time > format) be fine with you? > > 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/ > _______________________________________________ > Memaid-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/memaid-devel -- Fernando Antonio Mac Cracken Cezar <[email protected]> ------------------------------------------------------- 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/