Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/random.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    3434 * It was reworked for the GNU C Library by Roland McGrath.
    3535 */
     36
     37/*
     38
     39@deftypefn Supplement {long int} random (void)
     40@deftypefnx Supplement void srandom (unsigned int @var{seed})
     41@deftypefnx Supplement void* initstate (unsigned int @var{seed}, void *@var{arg_state}, unsigned long @var{n})
     42@deftypefnx Supplement void* setstate (void *@var{arg_state})
     43
     44Random number functions.  @code{random} returns a random number in the
     45range 0 to @code{LONG_MAX}.  @code{srandom} initializes the random
     46number generator to some starting point determined by @var{seed}
     47(else, the values returned by @code{random} are always the same for each
     48run of the program).  @code{initstate} and @code{setstate} allow fine-grained
     49control over the state of the random number generator.
     50
     51@end deftypefn
     52
     53*/
    3654
    3755#include <errno.h>
Note: See TracChangeset for help on using the changeset viewer.