WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIRandomGenerator

IID:2362d97a-747a-4576-8863-697667309209
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void generateRandomBytes ( PRUint32 length , out arrayof PRUint8 buffer )

void generateRandomBytes ( PRUint32 length , out arrayof PRUint8 buffer )

Generates the specified amount of random bytes.

Arguments:
length: The length of the data to generate.
buffer: A buffer that contains random bytes of size length.

Reference documentation is generated from Mozilla's source.