Virgil Security Crypto library
1.8.2
|
Provides randomization algorithm. More...
#include <VirgilRandom.h>
Public Member Functions | |
Creation / Destruction methods | |
VirgilRandom (const virgil::crypto::VirgilByteArray &personalInfo) | |
Initialize randomization module with personalization data. More... | |
Randomization | |
virgil::crypto::VirgilByteArray | randomize (size_t bytesNum) |
Produce random byte sequence. More... | |
size_t | randomize () |
size_t | randomize (size_t min, size_t max) |
Provides randomization algorithm.
|
explicit |
Initialize randomization module with personalization data.
personalInfo | ( |
virgil::crypto::VirgilByteArray virgil::crypto::foundation::VirgilRandom::randomize | ( | size_t | bytesNum | ) |
Produce random byte sequence.
bytesNum | number of bytes to be generated. |
size_t virgil::crypto::foundation::VirgilRandom::randomize | ( | ) |
Returns a pseudo-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
.
min | - minimum value. |
max | - maximum value. Must be greater than min. |