Fix description of random according to POSIX. Fixes bug 7003

This commit is contained in:
Bruno Haible 2013-11-01 12:23:51 +01:00 committed by Ondřej Bílka
parent 6cefed7654
commit 8c5c2600af
3 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2013-11-01 Bruno Haible <bruno@clisp.org>
[BZ #7003]
* manual/math.texi (BSD Random): Specify range upper bound as
in POSIX.
2013-10-31 Chris Leonard <cjl@sugarlabs.org>
* locale/iso-639.def: Add Meadow Mari (mhr).

18
NEWS
View File

@ -9,15 +9,15 @@ Version 2.19
* The following bugs are resolved with this release:
156, 431, 832, 2801, 9954, 10278, 11087, 13028, 13982, 13985, 14029,
14155, 14547, 14699, 14752, 14876, 14910, 15048, 15218, 15277, 15308,
15362, 15400, 15427, 15522, 15531, 15532, 15608, 15609, 15610, 15632,
15640, 15670, 15672, 15680, 15681, 15723, 15734, 15735, 15736, 15748,
15749, 15754, 15760, 15763, 15764, 15797, 15799, 15825, 15844, 15847,
15849, 15855, 15856, 15857, 15859, 15867, 15886, 15887, 15890, 15892,
15893, 15895, 15897, 15905, 15909, 15917, 15919, 15921, 15923, 15939,
15948, 15963, 15966, 15988, 16032, 16034, 16036, 16037, 16041, 16071,
16072, 16074, 16078.
156, 431, 832, 2801, 7003, 9954, 10278, 11087, 13028, 13982, 13985,
14029, 14155, 14547, 14699, 14752, 14876, 14910, 15048, 15218, 15277,
15308, 15362, 15400, 15427, 15522, 15531, 15532, 15608, 15609, 15610,
15632, 15640, 15670, 15672, 15680, 15681, 15723, 15734, 15735, 15736,
15748, 15749, 15754, 15760, 15763, 15764, 15797, 15799, 15825, 15844,
15847, 15849, 15855, 15856, 15857, 15859, 15867, 15886, 15887, 15890,
15892, 15893, 15895, 15897, 15905, 15909, 15917, 15919, 15921, 15923,
15939, 15948, 15963, 15966, 15988, 16032, 16034, 16036, 16037, 16041,
16071, 16072, 16074, 16078.
* CVE-2012-4412 The strcoll implementation caches indices and rules for
large collation sequences to optimize multiple passes. This cache

View File

@ -1364,7 +1364,7 @@ The prototypes for these functions are in @file{stdlib.h}.
@comment BSD
@deftypefun {long int} random (void)
This function returns the next pseudo-random number in the sequence.
The value returned ranges from @code{0} to @code{RAND_MAX}.
The value returned ranges from @code{0} to @code{2147483647}.
@strong{NB:} Temporarily this function was defined to return a
@code{int32_t} value to indicate that the return value always contains