Implemented by
[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, size_is(aLength), retval] out octet aBuffer)
Compare to: