This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/24092] on seeds 0 and 1, srandom() initializes the random number generator in the same way
- From: "vincent-srcware at vinc17 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 19 Jun 2019 13:31:49 +0000
- Subject: [Bug libc/24092] on seeds 0 and 1, srandom() initializes the random number generator in the same way
- Auto-submitted: auto-generated
- References: <bug-24092-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24092
--- Comment #25 from Vincent Lefèvre <vincent-srcware at vinc17 dot net> ---
(In reply to Andreas Schwab from comment #24)
> The random state is also global.
But the random() function is documented to be thread-safe.
I've eventually switched to the non-portable random_r() for reproducibility,
but reproducibility was just a minor additional feature in my application.
--
You are receiving this mail because:
You are on the CC list for the bug.