Page Speed Optimization Libraries
 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

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)

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

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