Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Attributes | List of all members
leveldb::Random Class Reference

#include <random.h>

Public Member Functions

 Random (uint32_t s)
 
uint32_t Next ()
 
uint32_t Uniform (int n)
 
bool OneIn (int n)
 
uint32_t Skewed (int max_log)
 

Private Attributes

uint32_t seed_
 

Detailed Description

Definition at line 15 of file random.h.

Constructor & Destructor Documentation

leveldb::Random::Random ( uint32_t  s)
inlineexplicit

Definition at line 19 of file random.h.

Member Function Documentation

uint32_t leveldb::Random::Next ( )
inline

Definition at line 25 of file random.h.

bool leveldb::Random::OneIn ( int  n)
inline

Definition at line 52 of file random.h.

uint32_t leveldb::Random::Skewed ( int  max_log)
inline

Definition at line 57 of file random.h.

uint32_t leveldb::Random::Uniform ( int  n)
inline

Definition at line 48 of file random.h.

Member Data Documentation

uint32_t leveldb::Random::seed_
private

Definition at line 17 of file random.h.


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