diff options
-rw-r--r-- | gmp.h | 2 | ||||
-rw-r--r-- | rand.c | 2 | ||||
-rw-r--r-- | randlc.c | 2 | ||||
-rw-r--r-- | randlc2x.c | 2 | ||||
-rw-r--r-- | randraw.c | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -121,7 +121,7 @@ typedef __mpf_struct mpf_t[1]; typedef enum { GMP_RAND_ALG_DEFAULT = 0, - GMP_RAND_ALG_LC = GMP_RAND_ALG_DEFAULT, /* Linear congruental. */ + GMP_RAND_ALG_LC = GMP_RAND_ALG_DEFAULT, /* Linear congruential. */ GMP_RAND_ALG_BBS /* Blum, Blum, and Shub. */ } gmp_rand_algorithm; @@ -77,7 +77,7 @@ gmp_rand_init (s, size, alg) { switch (alg) { - case GMP_RAND_ALG_LC: /* Linear congruental. */ + case GMP_RAND_ALG_LC: /* Linear congruential. */ { __gmp_rand_lc_scheme_struct *sp; mpz_t a; @@ -1,5 +1,5 @@ /* gmp_rand_init_lc (state, a, c, m) -- Initialize a random state for - a linear congruental generator with multiplier A, adder C, and + a linear congruential generator with multiplier A, adder C, and modulus M. Copyright (C) 1999, 2000 Free Software Foundation, Inc. diff --git a/randlc2x.c b/randlc2x.c index 48273fc41..b37d7cf0e 100644 --- a/randlc2x.c +++ b/randlc2x.c @@ -1,5 +1,5 @@ /* gmp_rand_init_lc_2exp (state, a, c, m2exp) -- Initialize random - state STATE for a linear congruental generator with multiplier A, + state STATE for a linear congruential generator with multiplier A, adder C, and modulus 2 ^ M2EXP. Copyright (C) 2000 Free Software Foundation, Inc. @@ -25,7 +25,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" #include "longlong.h" -/* For linear congruental (LC), we use one of algorithms (1) or (2). +/* For linear congruential (LC), we use one of algorithms (1) or (2). (gmp-3.0 uses algorithm (1) with 'm' as a power of 2.) LC algorithm (1). |