From ee77e57299b363d5b606f8ce20c0fa8758ce2be1 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 4 Apr 2000 11:06:22 +0200 Subject: Allocate enough space for seed to hold any upcoming seed. --- randlc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'randlc.c') diff --git a/randlc.c b/randlc.c index b46ca61ed..f97706a7a 100644 --- a/randlc.c +++ b/randlc.c @@ -39,6 +39,7 @@ gmp_rand_init_lc (s, a, c, m) #endif { mpz_init_set_ui (s->seed, 1); + _mpz_realloc (s->seed, ABSIZ (m)); /* Allocate algorithm specific data. */ s->data.lc = (__gmp_rand_data_lc *) -- cgit v1.2.1