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 <rtprandom.h>
Public Member Functions | |
RTPRandom () | |
virtual | ~RTPRandom () |
virtual uint8_t | GetRandom8 ()=0 |
virtual uint16_t | GetRandom16 ()=0 |
virtual uint32_t | GetRandom32 ()=0 |
virtual double | GetRandomDouble ()=0 |
uint32_t | PickSeed () |
Static Public Member Functions | |
static RTPRandom * | CreateDefaultRandomNumberGenerator () |
Interface for generating random numbers.
Definition at line 53 of file rtprandom.h.
|
inline |
Definition at line 56 of file rtprandom.h.
|
inlinevirtual |
Definition at line 59 of file rtprandom.h.
|
static |
Allocate a default random number generator based on your platform.
Definition at line 73 of file rtprandom.cpp.
References qrtplib::RTPRandomURandom::Init().
Referenced by qrtplib::RTPSession::GetRandomNumberGenerator().
|
pure virtual |
Returns a random sixteen bit value.
Implemented in qrtplib::RTPRandomRandS, qrtplib::RTPRandomURandom, and qrtplib::RTPRandomRand48.
Referenced by qrtplib::RTPPacketBuilder::CreateNewSSRC().
|
pure virtual |
Returns a random thirty-two bit value.
Implemented in qrtplib::RTPRandomRandS, qrtplib::RTPRandomURandom, and qrtplib::RTPRandomRand48.
Referenced by qrtplib::RTPPacketBuilder::CreateNewSSRC().
|
pure virtual |
Returns a random eight bit value.
Implemented in qrtplib::RTPRandomRandS, qrtplib::RTPRandomURandom, and qrtplib::RTPRandomRand48.
|
pure virtual |
Returns a random number between $0.0$ and $1.0$.
Implemented in qrtplib::RTPRandomRandS, qrtplib::RTPRandomURandom, and qrtplib::RTPRandomRand48.
Referenced by qrtplib::RTCPScheduler::CalculateBYETransmissionInterval(), and qrtplib::RTCPScheduler::CalculateTransmissionInterval().
uint32_t qrtplib::RTPRandom::PickSeed | ( | ) |
Can be used by subclasses to generate a seed for a random number generator.
Definition at line 54 of file rtprandom.cpp.
Referenced by qrtplib::RTPRandomRand48::RTPRandomRand48().