]> Savannah Git Hosting - gnulib.git/commitdiff
doc: Mention rand and srand limitations.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Nov 2023 18:57:30 +0000 (19:57 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Nov 2023 18:57:30 +0000 (19:57 +0100)
* doc/posix-functions/rand.texi: Mention multithread-safety problem.
* doc/posix-functions/srand.texi: Mention a Cygwin bug.

ChangeLog
doc/posix-functions/rand.texi
doc/posix-functions/srand.texi

index cb75644b15870ace5dd8f43a0211fd0a0a505974..3aa9f919d56951a4899f4ea5641f3692569e955c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-11-10  Bruno Haible  <bruno@clisp.org>
+
+       doc: Mention rand and srand limitations.
+       * doc/posix-functions/rand.texi: Mention multithread-safety problem.
+       * doc/posix-functions/srand.texi: Mention a Cygwin bug.
+
 2023-11-10  Bruno Haible  <bruno@clisp.org>
 
        tests: In multithreaded tests, use random() instead of rand().
index 2f36a548a77e52697a83514a5ddcf2ad650d711f..48b0bc57587f8f2ea1ec85f11574c25464e2a28a 100644 (file)
@@ -18,4 +18,7 @@ Portability problems not fixed by Gnulib:
 @item
 This function is only defined as an inline function on some platforms:
 Android 4.4.
+@item
+This function is not multithread-safe on some platforms:
+macOS 12.5, FreeBSD 13.2, Solaris 11.4.
 @end itemize
index 3e8f4b429be2c3bd1d5c1cdd7f34239329b73355..710a5a1270fbcae4f6e8c9f12d9fce280408cd3a 100644 (file)
@@ -15,4 +15,8 @@ Portability problems not fixed by Gnulib:
 @item
 This function is only defined as an inline function on some platforms:
 Android 4.4.
+@item
+This function has no effect on @code{rand} invocations in other threads
+on some platforms:
+Cygwin 3.4.6.
 @end itemize