VMime
|
Static Public Member Functions | |
static unsigned int | getNext () |
static unsigned int | getTime () |
static unsigned int | getProcess () |
static const string | getString (const size_t length, const string &randomChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") |
Pseudo-random number generator.
|
static |
Return a new random number.
Referenced by body::generateRandomBoundaryString(), and random::getString().
|
static |
Return the current process number (may be user to build "random" strings).
References platform::getHandler().
|
static |
Return a random character string with the specified length.
length | length of the string to generate |
randomChars | list of characters to use |
References random::getNext().
|
static |
Return the current time as a number (may be used to build "random" strings).
References platform::getHandler().
Referenced by body::generateRandomBoundaryString().