Man page - libwget-random(3)
Packages contas this manual
- libwget-random(3)
- libwget-console(3)
- libwget-dns(3)
- libwget-dns-caching(3)
- libwget-stringmap(3)
- libwget-utils(3)
- libwget-ip(3)
- libwget-io(3)
- libwget-net(3)
- libwget-printf(3)
- libwget-xalloc(3)
- libwget-thread(3)
- libwget-mem(3)
- libwget-error(3)
- libwget-bitmap(3)
- libwget-parse_sitemap(3)
- libwget-base64(3)
- libwget-robots(3)
- libwget-vector(3)
- libwget-xml(3)
- libwget-hash(3)
- libwget-parse_atom(3)
- libwget-hashmap(3)
- libwget-list(3)
apt-get install wget2-dev
Manual
| libwget-random(3) | Library Functions Manual | libwget-random(3) |
NAME
libwget-random - Random functions
SYNOPSIS
Functions
INITIALIZER (random_init)
void wget_random_init (void)
void wget_random_exit (void)
int wget_random (void)
void wget_srandom (unsigned int seed)
Detailed Description
This is wrapper code around gnulib's srandom_r() and random_r() with automatic seeding
Function Documentation
void wget_random_init (void)
Random API initialization, allocating/preparing the internal resources.
On systems with automatic library constructors, this function doesn't have to be called explicitly.
This function is not thread-safe.
void wget_random_exit (void)
Random API deinitialization, free'ing all internal resources.
On systems with automatic library destructors, this function doesn't have to be called explicitly.
This function is not thread-safe.
int wget_random (void)
Returns
This functions wraps around gnulib's random_r(). It performs a thread-safe seeding on the first use, if not done before by wget_srandom();
void wget_srandom (unsigned int seed)
Parameters
This functions wraps around srandom_r() to make a thread-safe seeding for wget_random().
Author
Generated automatically by Doxygen for wget2 from the source code.
| Version 2.2.0 | wget2 |