|
VMime
|
#include <random.hpp>
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 messageId::generateId(), body::generateRandomBoundaryString(), and getString().
|
static |
Return the current process number (may be user to build "random" strings).
References platform::getHandler().
Referenced by messageId::generateId().
|
static |
Return a random character string with the specified length.
| length | length of the string to generate |
| randomChars | list of characters to use |
References getNext().
|
static |
Return the current time as a number (may be used to build "random" strings).
References platform::getHandler().
Referenced by messageId::generateId(), and body::generateRandomBoundaryString().