Scroll to navigation

libwget-random(3) wget2 libwget-random(3)

NAME

libwget-random

SYNOPSIS

Functions


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

int wget_random (void)

Returns:

Random value between 0 and RAND_MAX

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:

seed Value to seed the random generator

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.

Mon Aug 7 2017 Version 1.0.0