summaryrefslogtreecommitdiff
path: root/randlc.c
diff options
context:
space:
mode:
Diffstat (limited to 'randlc.c')
-rw-r--r--randlc.c1
1 files changed, 1 insertions, 0 deletions
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 *)