• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unique ids
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Unique ids
      • From: Art Isbell <email@hidden>
  • Prev by Date: RE: JavaClient and Popups
  • Next by Date: Re: downloading dynamic images
  • Previous by thread: RE: JavaClient and Popups
  • Next by thread: Re: Unique ids
  • Index(es):
    • Date
    • Thread