Struct xpcom::interfaces::nsIRandomGenerator [] [src]

#[repr(C)]
pub struct nsIRandomGenerator { /* fields omitted */ }

interface nsIRandomGenerator : nsISupports

/**
 * Interface used to generate random data.
 *
 * @threadsafe
 */

Methods

impl nsIRandomGenerator
[src]

[src]

Cast this nsIRandomGenerator to one of its base interfaces.

impl nsIRandomGenerator
[src]

[src]

/**
   * 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);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIRandomGenerator
[src]

IID: nsIID = nsID(593680762, 29818, 17782, [136, 99, 105, 118, 103, 48, 146, 9])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIRandomGenerator
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRandomGenerator
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.