1999-10-27 Andreas Jaeger <aj@suse.de>
* stdlib/rand_r.c (rand_r): Really use 31 bits, the result was
shifted a bit too much.
Reported by Eugen Dedu <dedu@ese-metz.fr>.
+1999-10-27 Andreas Jaeger <aj@suse.de>
+
+ * stdlib/rand_r.c (rand_r): Really use 31 bits, the result was
+ shifted a bit too much.
+ Reported by Eugen Dedu <dedu@ese-metz.fr>.
+
1999-10-25 Ulrich Drepper <drepper@cygnus.com>
* resolv/gethnamaddr.c: Account bytes needed for alignment in
/* Reentrant random function frm POSIX.1c.
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
next *= 1103515245;
next += 12345;
- result <<= 11;
+ result <<= 10;
result ^= (unsigned int) (next / 65536) % 1024;
next *= 1103515245;