Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIRandomGenerator

Interface used to generate random data.
1.0
28
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.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh
 Last updated by: Sheppy,