paludis::Random Class Reference
[Utilities]

#include <random.hh>

List of all members.

Basic operations

 Random (uint32_t seed)
 Constructor, with a seed.
 Random ()
 Constructor, with a magic random seed.

Public Member Functions

template<typename DiffType_>
DiffType_ operator() (DiffType_ max)
 Fetch a random number in (0, max].


Detailed Description

A basic random number generator class, which is not suitable for cryptography but is fast and reasonably pseudorandom.

See TCppPL 22.7 for justification. See TaoCP2 3.2.1 for the basic algorithm and AppCrypt 16.1 for the choice of numbers.


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:12 2009 for paludis by  doxygen 1.5.4