From: Ulrich Drepper Date: Mon, 26 May 1997 20:51:30 +0000 (+0000) Subject: (__initstate_r): Initialize randomizer type in state array only at X-Git-Tag: cvs/libc-2_0_4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c557d5e3e98ab0c2f5b49dda2cbd1eec8c9112c;p=thirdparty%2Fglibc.git (__initstate_r): Initialize randomizer type in state array only at right place. --- diff --git a/stdlib/random_r.c b/stdlib/random_r.c index d19fd1755b4..58f5153936a 100644 --- a/stdlib/random_r.c +++ b/stdlib/random_r.c @@ -176,10 +176,6 @@ __initstate_r (seed, arg_state, n, buf) if (buf == NULL) return -1; - if (buf->rand_type == TYPE_0) - buf->state[-1] = buf->rand_type; - else - buf->state[-1] = (MAX_TYPES * (buf->rptr - buf->state)) + buf->rand_type; if (n < BREAK_1) { if (n < BREAK_0)