[scriptable, uuid(2362d97a-747a-4576-8863-697667309209)]
interface nsIRandomGenerator : nsISupports

Methods

 Generates the specified amount of random bytes.

 @param aLength
        The length of the data to generate.
 @param aBuffer
        A buffer that contains random bytes of size aLength.
void generateRandomBytes(in unsigned long aLength, [array, retval, size_is(aLength)] out octet aBuffer)