|
Page Speed Optimization Libraries
1.13.35.1
|
#include "simple_random.h"
Public Member Functions | |
| SimpleRandom (AbstractMutex *mutex) | |
| uint32 | Next () |
| uint32 | NextLockHeld () |
| GoogleString | GenerateHighEntropyString (int size) |
Extremely simplistic pseudo-random number generator from http://www.codeproject.com/Articles/25172/Simple-Random-Number-Generation
Do not use this for cryptographic applications. This is intended for generating high-entropy data that will not compress easily. This class is thread safe.
|
inlineexplicit |
Mutex should be created specifically for this instance, this class takes ownership.
1.8.6