Provides randomization algorithm.
More...
#include <VirgilRandom.h>
Provides randomization algorithm.
Initialize randomization module with personalization data.
- Parameters
-
- See also
- section 8.7.1 of NIST Special Publication 800-90A).
virgil::crypto::foundation::VirgilRandom::VirgilRandom |
( |
const std::string & |
personalInfo | ) |
|
|
explicit |
Initialize randomization module with personalization data.
- Parameters
-
- See also
- section 8.7.1 of NIST Special Publication 800-90A).
Produce random byte sequence.
- Parameters
-
bytesNum | number of bytes to be generated. |
- Returns
- Random byte sequence.
size_t virgil::crypto::foundation::VirgilRandom::randomize |
( |
| ) |
|
Returns a pseudo-random number.
- Returns
- Random Number
size_t virgil::crypto::foundation::VirgilRandom::randomize |
( |
size_t |
min, |
|
|
size_t |
max |
|
) |
| |
Returns a pseudo-random number between min and max, inclusive.
The difference between min and max can be at most std::numeric_limits<size_t>::max() - 1
.
- Parameters
-
min | - minimum value. |
max | - maximum value. Must be greater than min. |
- Returns
- Number between min and max, inclusive.
The documentation for this class was generated from the following file: