[Users] How to generate UID's for address books

Paul Rolland (=?UTF-8?B?44Od44O844Or44O744Ot44Op44Oz?=) rol at witbe.net
Fri Sep 28 03:04:02 CEST 2018


Hello,

On Fri, 28 Sep 2018 00:23:25 +0200
Laurent Bloch <lb at laurentbloch.org> wrote:

> Le vendredi 28 septembre 2018 wwp a écrit ceci :
> 
> > Hello Laurent,
> >
> > Any UID, as in any unique identifier (unsigned int). Just make sure
> > the number is unique, pick a random one if you want; the date in
> > seconds since epoch is a good pick non-random one but be sure you're
> > not creating several ones during the same second ;-).  
> 
> Uh uh, you are right, I'll add a delay :-(

If you just need an (unsigned int), make it a counter ;) No need to wait
while delays are ...delaying !

Paul

-- 

Paul Rolland                                E-Mail : rol(at)witbe.net
CTO - Witbe.net SA                          Tel. +33 (0)1 47 67 77 77
Les Collines de l'Arche                     Fax. +33 (0)1 47 67 77 99
F-92057 Paris La Defense                    RIPE : PR12-RIPE

LinkedIn : http://www.linkedin.com/in/paulrolland
Skype    : rollandpaul

"I worry about my child and the Internet all the time, even though she's
too young to have logged on yet. Here's what I worry about. I worry that 10
or 15 years from now, she will come to me and say 'Daddy, where were you
when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20180928/4d68ad12/attachment.sig>


More information about the Users mailing list