![]() |
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 <rtprandomrands.h>
Inheritance diagram for qrtplib::RTPRandomRandS:
Collaboration diagram for qrtplib::RTPRandomRandS:Public Member Functions | |
| RTPRandomRandS () | |
| ~RTPRandomRandS () | |
| int | Init () |
| 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 Attributes | |
| bool | initialized |
Additional Inherited Members | |
Static Public Member Functions inherited from qrtplib::RTPRandom | |
| static RTPRandom * | CreateDefaultRandomNumberGenerator () |
A random number generator which tries to use the rand_s function on the Win32 platform.
Definition at line 52 of file rtprandomrands.h.
| qrtplib::RTPRandomRandS::RTPRandomRandS | ( | ) |
Definition at line 53 of file rtprandomrands.cpp.
References initialized.
Referenced by GetRandomDouble().
Here is the caller graph for this function:| qrtplib::RTPRandomRandS::~RTPRandomRandS | ( | ) |
Definition at line 58 of file rtprandomrands.cpp.
Referenced by GetRandomDouble().
Here is the caller graph for this function:
|
virtual |
Returns a random sixteen bit value.
Implements qrtplib::RTPRandom.
Definition at line 72 of file rtprandomrands.cpp.
Referenced by GetRandomDouble().
Here is the caller graph for this function:
|
virtual |
Returns a random thirty-two bit value.
Implements qrtplib::RTPRandom.
Definition at line 77 of file rtprandomrands.cpp.
Referenced by GetRandomDouble().
Here is the caller graph for this function:
|
virtual |
Returns a random eight bit value.
Implements qrtplib::RTPRandom.
Definition at line 67 of file rtprandomrands.cpp.
Referenced by GetRandomDouble().
Here is the caller graph for this function:
|
virtual |
Returns a random number between $0.0$ and $1.0$.
Implements qrtplib::RTPRandom.
Definition at line 82 of file rtprandomrands.cpp.
References ERR_RTP_RTPRANDOMRANDS_NOTSUPPORTED, GetRandom16(), GetRandom32(), GetRandom8(), i, Init(), initialized, RTPRANDOM_2POWMIN63, RTPRandomRandS(), and ~RTPRandomRandS().
Here is the call graph for this function:| int qrtplib::RTPRandomRandS::Init | ( | ) |
Initialize the random number generator.
Definition at line 62 of file rtprandomrands.cpp.
References ERR_RTP_RTPRANDOMRANDS_NOTSUPPORTED.
Referenced by GetRandomDouble().
Here is the caller graph for this function:
|
private |
Definition at line 66 of file rtprandomrands.h.
Referenced by GetRandomDouble(), and RTPRandomRandS().
1.8.13