SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <rtprandomrand48.h>
Public Member Functions | |
RTPRandomRand48 () | |
RTPRandomRand48 (uint32_t seed) | |
~RTPRandomRand48 () | |
uint8_t | GetRandom8 () |
uint16_t | GetRandom16 () |
uint32_t | GetRandom32 () |
double | GetRandomDouble () |
Public Member Functions inherited from qrtplib::RTPRandom | |
RTPRandom () | |
virtual | ~RTPRandom () |
uint32_t | PickSeed () |
Private Member Functions | |
void | SetSeed (uint32_t seed) |
Private Attributes | |
uint64_t | state |
Additional Inherited Members | |
Static Public Member Functions inherited from qrtplib::RTPRandom | |
static RTPRandom * | CreateDefaultRandomNumberGenerator () |
A random number generator using the algorithm of the rand48 set of functions.
Definition at line 51 of file rtprandomrand48.h.
qrtplib::RTPRandomRand48::RTPRandomRand48 | ( | ) |
Definition at line 39 of file rtprandomrand48.cpp.
References qrtplib::RTPRandom::PickSeed(), and SetSeed().
qrtplib::RTPRandomRand48::RTPRandomRand48 | ( | uint32_t | seed | ) |
Definition at line 44 of file rtprandomrand48.cpp.
References SetSeed().
qrtplib::RTPRandomRand48::~RTPRandomRand48 | ( | ) |
Definition at line 49 of file rtprandomrand48.cpp.
|
virtual |
Returns a random sixteen bit value.
Implements qrtplib::RTPRandom.
Definition at line 65 of file rtprandomrand48.cpp.
References GetRandom32().
|
virtual |
Returns a random thirty-two bit value.
Implements qrtplib::RTPRandom.
Definition at line 72 of file rtprandomrand48.cpp.
References state.
Referenced by GetRandom16(), and GetRandom8().
|
virtual |
Returns a random eight bit value.
Implements qrtplib::RTPRandom.
Definition at line 58 of file rtprandomrand48.cpp.
References GetRandom32().
|
virtual |
Returns a random number between $0.0$ and $1.0$.
Implements qrtplib::RTPRandom.
Definition at line 81 of file rtprandomrand48.cpp.
References state.
|
private |
Definition at line 53 of file rtprandomrand48.cpp.
References state.
Referenced by RTPRandomRand48().
|
private |
Definition at line 65 of file rtprandomrand48.h.
Referenced by GetRandom32(), GetRandomDouble(), and SetSeed().