On 2023-11-09 I wrote: > Could it be that rand() is not multithread-safe? > > According to the standards, rand() should be multithread-safe.
Nope, I was mistaken there. See [1] for the details. So, the crash on CHERI was due to buggy code in the gnulib tests, meanwhile fixed through [2]. Thus, no one actually needs the 'rand' module in its current state. I'm marking it as "obsolete" [3]. [1] https://sourceware.org/pipermail/cygwin/2023-November/254756.html [2] https://lists.gnu.org/archive/html/bug-gnulib/2023-11/msg00080.html [3] https://www.gnu.org/software/gnulib/manual/html_node/Module-description.html 2023-11-14 Bruno Haible <br...@clisp.org> rand: Mark as obsolete. * modules/rand (Status, Notice): New sections. diff --git a/modules/rand b/modules/rand index 7cd6ca71c6..69dd70c489 100644 --- a/modules/rand +++ b/modules/rand @@ -1,6 +1,12 @@ Description: global random number generator +Status: +obsolete + +Notice: +This module is obsolete. + Files: lib/rand.c m4/rand.m4