Unique ids
Unique ids
- Subject: Unique ids
- From: Georg Tuparev <email@hidden>
- Date: Wed, 14 May 2003 12:22:21 +0200
Folks,
I need to generate unique ids that I can also use in the url.
Currently I am using something like this:
byte [] buff = new
byte[EOTemporaryGlobalID.UniqueBinaryKeyLength];
EOTemporaryGlobalID.assignGloballyUniqueBytes(buff);
String id = new String(buff);
String encodeStr = encode(id);
Well, this works, but it looks ugly as hell.
Is there a better way to produce unique strings like session ids
(without creating sessions of course ;-)?
Boy I miss NSProcessInfo!
tia
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.