I do not think you can do that with GWT. Therefore I use
http://uuid-service.appspot.com though not with GWT application.
Peter
2008/11/28, Phani <[EMAIL PROTECTED]>:
>
> Hi All,
>
> In my application i have to implement a unique number generation i.e
> UUID using SecureRandom class of java.security package. Please refer
> the below code.
> try {
> // Create a secure random number generator
> SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
> // Get 1024 random bits
> byte[] bytes = new byte[1024/8];
> sr.nextBytes(bytes);
>
> // Create two secure number generators with the same seed
> int seedByteCount = 10;
> byte[] seed = sr.generateSeed(seedByteCount);
> sr = SecureRandom.getInstance("SHA1PRNG");
> sr.setSeed(seed);
> SecureRandom sr2 = SecureRandom.getInstance("SHA1PRNG");
> sr2.setSeed(seed);
> } catch (NoSuchAlgorithmException e) {
> }
> But i'm facing a problem stating that java.security cannot be resolved
> to a type. Please help me.Whether GWT doesn't support java.security
> package?
> Thanks in Advance,
> Phani.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---