]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__initstate_r): Initialize randomizer type in state array only at
authorUlrich Drepper <drepper@redhat.com>
Mon, 26 May 1997 20:51:30 +0000 (20:51 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 26 May 1997 20:51:30 +0000 (20:51 +0000)
right place.

stdlib/random_r.c

index d19fd1755b441a281e351ca28ecf629fcf591027..58f5153936a8ece3d4111325b3d2ca5a36211b35 100644 (file)
@@ -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)