So, can I access NSS from JavaScript? (Provided I have chrome access)

Doug Turner wrote:
> Leung WC wrote:
> 
>>I want to generate GUIDs in my Gecko application, and therefore need to
>>seed a PRNG w/ 128 bits of data. How do I generate such seed?
> 
> 
> Not sure if I understand your question, but I am guessing you basically
> want to ask NSS for random data to either seed some PRNG or to create a
> GUID.
> 
> To ask for random data from NSS call:
> 
> PK11_GenerateRandom(unsigned char *data,int len);
> 
> This presupposes you are using Gecko in your application and are using
> the build configuration option of --enable-crypto.
> 
> Regards,
> Doug
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to