This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/24092] on seeds 0 and 1, srandom() initializes the random number generator in the same way


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]