DRAND48_R
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ATTRIBUTES
CONFORMING TO
SEE ALSO
COLOPHON
NAME
drand48_r, erand48_r, lrand48_r, nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r − generate uniformly distributed pseudo-random numbers reentrantly
SYNOPSIS
#include <stdlib.h>
int drand48_r(struct drand48_data *buffer, double *result);
int
erand48_r(unsigned short xsubi[3],
struct drand48_data *buffer, double
*result);
int lrand48_r(struct drand48_data *buffer, long int *result);
int
nrand48_r(unsigned short int xsubi[3],
struct drand48_data *buffer, long int
*result);
int mrand48_r(struct drand48_data *buffer,long int *result);
int
jrand48_r(unsigned short int xsubi[3],
struct drand48_data *buffer, long int
*result);
int srand48_r(long int seedval, struct drand48_data *buffer);
int
seed48_r(unsigned short int seed16v[3],
struct drand48_data *buffer);
int
lcong48_r(unsigned short int param[7],
struct drand48_data *buffer);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
All functions shown above: _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
DESCRIPTION
These functions are the reentrant analogs of the functions described in drand48(3). Instead of modifying the global random generator state, they use the supplied data buffer.
Before the first use, this struct must be initialized, for example, by filling it with zeros, or by calling one of the functions srand48_r(), seed48_r(), or lcong48_r().
RETURN VALUE
The return value is 0.
ATTRIBUTES
Multithreading
(see pthreads(7))
The drand48_r(), erand48_r(),
lrand48_r(), nrand48_r(), mrand48_r(),
jrand48_r(), srand48_r(), seed48_r(),
and lcong48_r() functions are thread-safe.
CONFORMING TO
These functions are GNU extensions and are not portable.
SEE ALSO
drand48(3), rand(3), random(3)
COLOPHON
This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.
More Linux Commands
manpages/XkbFreeIndicatorMaps.3.html
XkbFreeIndicatorMaps(3) - Frees memory used by the indicator
If the indicators member of the keyboard description record pointed to by xkb is not NULL, XkbFreeIndicatorMaps frees the memory associated with the indicators
manpages/glutShowWindow.3.html
glutShowWindow(3) - change the display status of the current
glutShowWindow will show the current window (though it may still not be visible if obscured by other shown windows). glutHideWindow will hide the current window
manpages/DisplayHeight.3.html
DisplayHeight(3) - image format functions and macros........
The XListPixmapFormats function returns an array of XPixmapFormatValues structures that describe the types of Z format images supported by the specified display
manpages/icpfind.1.html
icpfind(1) - Use heuristic control-point detection strategie
icpfind is a command-line tool to use the various different control point detectors and heuristic control point detector strategies defined in the Hugin Paramet
manpages/fgetwc.3.html
fgetwc(3) - read a wide character from a FILE stream........
The fgetwc() function is the wide-character equivalent of the fgetc(3) function. It reads a wide character from stream and returns it. If the end of stream is r
manpages/Tcl_CreateExitHandler.3.html
Tcl_CreateExitHandler(3) - end the application or thread (an
The procedures described here provide a graceful mechanism to end the execution of a Tcl application. Exit handlers are invoked to cleanup the applications stat
manpages/ldap_unbind_s.3.html
ldap_unbind_s(3) - LDAP bind routines - Linux manual page...
These routines provide various interfaces to the LDAP bind operation. After an association with an LDAP server is made using ldap_init(3), an LDAP bind operatio
manpages/g++-4.8.1.html
g-4.8(1) GNU project C and C compiler - Linux manual page...
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The overall options allow you to stop this process at an intermediate st
manpages/xplsprinters.1x.html
xplsprinters(1x) - shows a list of Xprint printers and it's
xplsprinters is a utility for Xprint, the printing system for the X Window system. It can deliver both a list of printers and attributes supported for a specifi
manpages/dn_expand.3.html
dn_expand(3) - resolver routines (Library - Linux man page)
These functions make queries to and interpret the responses from Internet domain name servers. The res_init() function reads the configuration files (see resolv
manpages/pto_gen.1.html
pto_gen(1) Generate a Hugin project file from a list of imag
pto_gen assembles a Hugin .pto project file that is suitable as input for further tools such as the cpfind control-point generator, or for opening with the Hugi
manpages/fbdev.4.html
fbdev(4) - video driver for framebuffer device (Man Page)...
fbdev is an Xorg driver for framebuffer devices. This is a non-accelerated driver, the following framebuffer depths are supported: 8, 15, 16, 24. All visual typ
