VLC 4.0.0-dev
|
This file defined random number generator function in vlc. More...
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. | |
long | vlc_lrand48 (void) |
PRNG uniformly distributed between 0 and 2^32 - 1. | |
long | vlc_mrand48 (void) |
PRNG uniformly distributed between -2^32 and 2^32 - 1. | |
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().
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().
void vlc_rand_bytes | ( | void * | buf, |
size_t | len | ||
) |
References ikey, lock, okey, TIME_UTC, timespec_get(), VLC_HASH_MD5_DIGEST_SIZE, vlc_hash_md5_Finish(), vlc_hash_md5_Init(), vlc_hash_md5_Update(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_rand_init(), and VLC_STATIC_MUTEX.
Referenced by GenerateCnonce(), init_rand48(), randomizer_Init(), vlc_mkstemp(), and vlc_playlist_Shuffle().