|
VLC
4.0.0-dev
|

Functions | |
| static void | init_rand48 (void) |
| double | vlc_drand48 (void) |
| PRNG uniformly distributed between 0.0 and 1.0 with 48-bits precision. More... | |
| long | vlc_lrand48 (void) |
| PRNG uniformly distributed between 0 and 2^32 - 1. More... | |
| long | vlc_mrand48 (void) |
| PRNG uniformly distributed between -2^32 and 2^32 - 1. More... | |
Variables | |
| struct { | |
| bool init | |
| unsigned short subi [3] | |
| vlc_mutex_t lock | |
| } | rand48 = { false, { 0, 0, 0, }, { .value = ATOMIC_VAR_INIT(0), .recursion = ATOMIC_VAR_INIT(0), .owner = ATOMIC_VAR_INIT(NULL), } , } |
|
static |
References rand48, subi, and vlc_rand_bytes().
Referenced by vlc_drand48(), vlc_lrand48(), and vlc_mrand48().
| double vlc_drand48 | ( | void | ) |
PRNG uniformly distributed between 0.0 and 1.0 with 48-bits precision.
References erand48(), init_rand48(), rand48, vlc_mutex_lock(), and vlc_mutex_unlock().
| long vlc_lrand48 | ( | void | ) |
PRNG uniformly distributed between 0 and 2^32 - 1.
References init_rand48(), nrand48(), rand48, vlc_mutex_lock(), and vlc_mutex_unlock().
| long vlc_mrand48 | ( | void | ) |
PRNG uniformly distributed between -2^32 and 2^32 - 1.
References init_rand48(), jrand48(), rand48, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by httpd_StreamCallBack().
| bool init |
Referenced by module_load().
| vlc_mutex_t lock |
Referenced by config_SaveConfigFile(), vlc_cond_timedwait_daytime(), vlc_global_mutex(), and vlc_rand_bytes().
| struct { ... } rand48 |
Referenced by init_rand48(), vlc_drand48(), vlc_lrand48(), and vlc_mrand48().
| unsigned short subi[3] |
Referenced by init_rand48().
1.8.13