Fix description of random according to POSIX. Fixes bug 7003
authorBruno Haible <bruno@clisp.org>
Fri, 1 Nov 2013 11:23:51 +0000 (12:23 +0100)
committerOndřej Bílka <neleai@seznam.cz>
Fri, 1 Nov 2013 11:23:51 +0000 (12:23 +0100)
ChangeLog
NEWS
manual/math.texi

index eea4665..b21cdbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
diff --git a/NEWS b/NEWS
index 3ceed0c..f24d329 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
index 193d415..57cf24f 100644 (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