Home | Libraries | People | FAQ | More |
Returns a cryptographically random string capable of being used as a filename. Essentially random_fill() + to_hex_string().
std::string utils::random_string(size_t randomlen)
Type |
Concept |
Name |
Description |
---|---|---|---|
size_t |
randomlen |
The number of bytes of randomness to use for the string. |
A string representing the randomness at a 2x ratio, so if 32 bytes were requested, this string would be 64 bytes long.
#include <boost/afio/v2/afio.hpp>
Whatever the system API takes.
Any error from the operating system.