VLC
3.0.21
|
Go to the source code of this file.
Functions | |
void | vlc_rand_bytes (void *buf, size_t len) |
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... | |
This file defined random number generator function in vlc
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().
Referenced by ResetCurrentlyPlaying().
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 playlist_ItemArraySort().
void vlc_rand_bytes | ( | void * | buf, |
size_t | len | ||
) |
References AddMD5(), md5_s::buf, count, EndMD5(), ikey, InitMD5(), lock, NTPtime64(), okey, and vlc_rand_init().
Referenced by init_rand48().