netwerk/base/public/nsIRandomGenerator.idlScriptable
Interface used to generate random data.
1.0
66
Introduced
Gecko 1.9
Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

Method overview

void generateRandomBytes(in unsigned long aLength, [retval, array, size_is(aLength)] out octet aBuffer);

Methods

generateRandomBytes()

Generates the specified amount of random bytes.

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