Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::SimpleRandom Class Reference

#include "simple_random.h"

Public Member Functions

 SimpleRandom (AbstractMutex *mutex)
 
uint32 Next ()
 
uint32 NextLockHeld ()
 
GoogleString GenerateHighEntropyString (int size)
 

Detailed Description

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.

Constructor & Destructor Documentation

net_instaweb::SimpleRandom::SimpleRandom ( AbstractMutex mutex)
inlineexplicit

Mutex should be created specifically for this instance, this class takes ownership.


The documentation for this class was generated from the following file: