Commit Graph

30 Commits

Author SHA1 Message Date
Michael Kerrisk 6db120153b rand.3: Remove duplicate #include in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-01 20:26:15 +02:00
Denis Barbier 7f7cdb47b4 rand.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-26 16:05:56 +02:00
Denis Barbier 05a46db651 rand.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-26 16:03:33 +02:00
Michael Kerrisk 50cbc42b7c rand.3: srcfix: rewrap some short source lines
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 07:44:46 +02:00
Michael Kerrisk 9750142be3 rand.3: Add an example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 07:44:46 +02:00
Michael Kerrisk 91e9dd28a5 rand.3: Clarify description of range of returned value
Reported-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 07:44:46 +02:00
Michael Kerrisk d931893ba3 rand.3: Expand description of rand_r()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 07:44:46 +02:00
Michael Kerrisk 3da3747663 rand.3: srcfix: remove outdated FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:32:01 +13:00
Michael Kerrisk 0f200f076c Add/fix feature test macro requirements. 2008-08-29 15:50:13 +00:00
Michael Kerrisk a5eda9467f POSIX.1-2008 marks rand_r() as obsolete. 2008-08-06 12:29:55 +00:00
Michael Kerrisk 7155eb96b8 Clarify wording describing range of values returned by rand(). 2008-04-28 20:24:52 +00:00
Michael Kerrisk 12a1a9e794 Added FIXME relating to SUSv4 chhanges 2008-03-19 15:09:59 +00:00
Michael Kerrisk a5ed744769 Remove outdated warning in NOTES; encourage the use of random(3) instead. 2008-03-03 16:47:45 +00:00
Michael Kerrisk a6e2f12821 Make the standard indent for code samples, shell session
logs, etc. to be ".in +4n".
2007-12-19 07:19:23 +00:00
Michael Kerrisk d9a10d9df9 ffix 2007-12-13 20:46:52 +00:00
Michael Kerrisk cc4615cc78 Added/updated glibc feature test macro requirements 2007-07-08 12:11:40 +00:00
Michael Kerrisk 2f0af33ba6 ffix 2007-06-22 19:42:52 +00:00
Michael Kerrisk d9bfdb9c21 Convert to American spelling conventions 2007-06-08 09:56:56 +00:00
Michael Kerrisk 3a72373c40 Added section numbers to page xrefs 2007-05-21 22:14:09 +00:00
Michael Kerrisk 2b2581ee37 Fix inconsistencies in order of .SH sections 2007-05-19 04:30:20 +00:00
Michael Kerrisk 60a90ecdae Convert function formatting of the form "\fBname\fP()" to ".BR name ()". 2007-05-12 09:06:04 +00:00
Michael Kerrisk c13182efa3 Wrapped long lines, wrapped at sentence boundaries; stripped trailing
white space.
2007-04-12 22:42:49 +00:00
Michael Kerrisk 6395a22348 tfix 2006-12-27 05:35:25 +00:00
Michael Kerrisk 64dd32071a Minor rewording 2006-09-06 12:38:32 +00:00
Michael Kerrisk 68e1685c25 Updated CONFORMING TO section 2006-08-03 13:57:30 +00:00
Michael Kerrisk 63aa9df02f Automated unformatting of parentheses using unformat_parens.sh 2005-10-19 07:07:02 +00:00
Michael Kerrisk 84a0a0510d Remove misleading text describing FreeBSD's sranddev() function.
As per debian bug 328629
2005-09-21 11:23:38 +00:00
Michael Kerrisk b14d4aa5b8 Classical BSD versions are now always named x.yBSD (formerly
there was a mix of x.yBSD and BSD x.y).
2005-07-18 15:05:56 +00:00
Michael Kerrisk 6e657687f9 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=194842
Because RAND_MAX is equal to INT_MAX, the following expression
contained in the manpage for rand(3) is slightly incorrect.
j=1+(int) (10.0*rand()/(RAND_MAX+1.0));

The correct expression should use parentheses to group the division
before the multiplication, thus yielding:
j=1+(int) (10.0*(rand()/(RAND_MAX+1.0)));

This is not an error where 10.0 is a floating point number, however
where 10.0 is replaced with an integer, this will cause the expression
to always evaluate to 1. (The addition of two parentheses would make
this bug a lot more difficult to make.)
2005-06-21 09:22:02 +00:00
Michael Kerrisk fea681dafb Import of man-pages 1.70 2004-11-03 13:51:07 +00:00