Re: Generating Entropy.

2009-04-08 Thread 0x000000
I have this so far, which seem to produce a good set of random bytes: buffer = ''; var PRNG = Components.classes['@mozilla.org/security/random-generator; 1']; var rg = PRNG.getService(Components.interfaces.nsIRandomGenerator); randomBytes = rg.generateRandomBytes (32, buffer); -- dev-tech-cryp

Generating Entropy.

2009-04-08 Thread 0x000000
I thought it was better to post it here, instead of the general dev.extensions. Hi all, I have a question regarding generating sufficient entropy using XPCOM objects, for use inside extensions. First off is this possible at all? like using: ["@mozilla.org/security/ entropy;1"] or is there any ot