summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-05-26 20:51:30 +0000
committerUlrich Drepper <drepper@redhat.com>1997-05-26 20:51:30 +0000
commit8c557d5e3e98ab0c2f5b49dda2cbd1eec8c9112c (patch)
tree9bb1577bbe7c8d3ecc0e69e80fdabe95ecf63346 /stdlib
parentaff76853659af70746dcdfaf6d855fc76f1e415d (diff)
(__initstate_r): Initialize randomizer type in state array only at
right place.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/random_r.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/stdlib/random_r.c b/stdlib/random_r.c
index d19fd1755b..58f5153936 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)