Bitcoin
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_
 

Constructor & Destructor Documentation

◆ Random()

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

Member Function Documentation

◆ Next()

uint32_t leveldb::Random::Next ( )
inline

◆ OneIn()

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

◆ Skewed()

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

◆ Uniform()

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

Member Data Documentation

◆ seed_

uint32_t leveldb::Random::seed_
private

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