tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.rst (1234B)


      1 .. _mozilla_projects_nss_reference_fc_generaterandom:
      2 
      3 FC_GenerateRandom
      4 =================
      5 
      6 `Name <#name>`__
      7 ~~~~~~~~~~~~~~~~
      8 
      9 .. container::
     10 
     11   FC_GenerateRandom - generate a random number.
     12 
     13 `Syntax <#syntax>`__
     14 ~~~~~~~~~~~~~~~~~~~~
     15 
     16 .. container::
     17 
     18   .. code::
     19 
     20      CK_RV FC_GenerateRandom(
     21        CK_SESSION_HANDLE hSession,
     22        CK_BYTE_PTR pRandomData,
     23        CK_ULONG ulRandomLen
     24      );
     25 
     26 `Parameters <#parameters>`__
     27 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     28 
     29 .. container::
     30 
     31   ``hSession``
     32      [in] session handle.
     33   ``pRandomData``
     34      [out] pointer to the location to receive the random data.
     35   ``ulRandomLen``
     36      [in] length of the buffer in bytes.
     37 
     38 `Description <#description>`__
     39 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     40 
     41 .. container::
     42 
     43   ``FC_GenerateRandom`` generates random data of the specified length.
     44 
     45   A user may call ``FC_GenerateRandom`` without logging into the token (to assume the NSS User
     46   role).
     47 
     48 .. _return_value:
     49 
     50 `Return value <#return_value>`__
     51 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     52 
     53 .. container::
     54 
     55 `Examples <#examples>`__
     56 ~~~~~~~~~~~~~~~~~~~~~~~~
     57 
     58 .. container::
     59 
     60 .. _see_also:
     61 
     62 `See also <#see_also>`__
     63 ~~~~~~~~~~~~~~~~~~~~~~~~
     64 
     65 .. container::
     66 
     67   -  `NSC_GenerateRandom </en-US/NSC_GenerateRandom>`__