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: Tue, 18 Jun 2019 09:26:23 +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 #19 from Vincent Lefèvre <vincent-srcware at vinc17 dot net> ---
(In reply to Yann Droneaud from comment #18)
> If POSIX doesn't specify the algorithm (see below), having srandom(0) and
> srandom(1) doing the same is fine. Also, it might exist other seeds that
> produce the same random number sequences.
This is not what the user expects. If different seeds can return the same
random number sequences, this makes srandom() useless.
--
You are receiving this mail because:
You are on the CC list for the bug.