~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/rand.3

  • Committer: Package Import Robot
  • Author(s): Loïc Minier
  • Date: 2011-10-17 13:06:22 UTC
  • mfrom: (1.1.46 upstream) (2.2.11 sid)
  • Revision ID: package-import@ubuntu.com-20111017130622-rbdw3julnma2baqu
Tags: 3.32-0.2ubuntu1
* Merge from Debian testing/unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.
* Keep Debian's glibc-doc version in the Replaces as it's satisfactory for
  upgrades from natty and lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
.\" Modified 1998-04-10, Nicol�s Lichtmaier <nick@debian.org>
35
35
.\"          with contribution from Francesco Potorti <F.Potorti@cnuce.cnr.it>
36
36
.\" Modified 2003-11-15, aeb, added rand_r
37
 
.\| 2010-09-13, mtk, added example program
 
37
.\" 2010-09-13, mtk, added example program
38
38
.\"
39
 
.TH RAND 3 2010-09-13 "" "Linux Programmer's Manual"
 
39
.TH RAND 3 2010-10-01 "" "Linux Programmer's Manual"
40
40
.SH NAME
41
41
rand, rand_r, srand \- pseudo-random number generator
42
42
.SH SYNOPSIS
86
86
In order to get reproducible behavior in a threaded
87
87
application, this state must be made explicit;
88
88
this can be done using the reentrant function
89
 
.BR rand_r ()
 
89
.BR rand_r ().
90
90
 
91
91
Like
92
92
.BR rand (),
187
187
 
188
188
#include <stdlib.h>
189
189
#include <stdio.h>
190
 
#include <stdlib.h>
191
190
 
192
191
int
193
192
main(int argc, char *argv[])
217
216
.BR drand48 (3),
218
217
.BR random (3)
219
218
.SH COLOPHON
220
 
This page is part of release 3.27 of the Linux
 
219
This page is part of release 3.32 of the Linux
221
220
.I man-pages
222
221
project.
223
222
A description of the project,