Go to the source code of this file.
◆ rtlRandomError
◆ rtlRandomPool
◆ __rtl_RandomError
Error Code enumeration.
Enumerator |
---|
rtl_Random_E_None | |
rtl_Random_E_Argument | |
rtl_Random_E_Memory | |
rtl_Random_E_Unknown | |
rtl_Random_E_FORCE_EQUAL_SIZE | |
◆ rtl_random_addBytes()
Add bytes to a Random Pool.
- Parameters
-
[in] | Pool | a Random Pool. |
[in] | Buffer | a buffer containing the bytes to add. |
[in] | Bytes | the number of bytes to read from the buffer. |
- Return values
-
rtl_Random_E_None | upon success. |
- Deprecated:
- This now does nothing, instead use rtl_random_getBytes with a NULL Pool
◆ rtl_random_createPool()
Create a Random Pool.
- Returns
- initialized Random Pool, or NULL upon failure.
- Deprecated:
- Instead use rtl_random_getBytes with a NULL Pool
◆ rtl_random_destroyPool()
Destroy a Random Pool.
- Parameters
-
- Deprecated:
- Instead use rtl_random_getBytes with a NULL Pool
◆ rtl_random_getBytes()
Retrieve random bytes.
- Parameters
-
[in] | Pool | use NULL, non-NULL Random Pools are deprecated |
[in,out] | Buffer | a buffer to receive the random bytes. |
[in] | Bytes | the number of bytes to write to the buffer. |
- Return values
-
rtl_Random_E_None | upon success. |