summaryrefslogtreecommitdiff
path: root/randlc.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2000-12-12 23:21:00 +0100
committertege <tege@gmplib.org>2000-12-12 23:21:00 +0100
commitcbfba7c009655f1d30310401d19e2d43b65de937 (patch)
tree0af52571db0e1d64eba4a848b4264f9d53e00aef /randlc.c
parent8c84d095ffddf5aba66d27c15ec30a66d22f5a95 (diff)
downloadgmp-cbfba7c009655f1d30310401d19e2d43b65de937.tar.gz
Corresponding changes for:
* gmp-h.in (__gmp_randstate_struct): Prefix field names with _mp_ to keep out of user name space. (__gmp_randata_lc): Likewise.
Diffstat (limited to 'randlc.c')
-rw-r--r--randlc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/randlc.c b/randlc.c
index 942eacae6..07ae5a580 100644
--- a/randlc.c
+++ b/randlc.c
@@ -33,16 +33,16 @@ gmp_randinit_lc (gmp_randstate_t rstate,
/* FIXME: Not finished. We don't handle this in _gmp_rand() yet. */
abort ();
- mpz_init_set_ui (rstate->seed, 1);
- _mpz_realloc (rstate->seed, ABSIZ (m));
+ mpz_init_set_ui (rstate->_mp_seed, 1);
+ _mpz_realloc (rstate->_mp_seed, ABSIZ (m));
/* Allocate algorithm specific data. */
- rstate->algdata.lc = (__gmp_randata_lc *)
+ rstate->_mp_algdata._mp_lc = (__gmp_randata_lc *)
(*__gmp_allocate_func) (sizeof (__gmp_randata_lc));
- mpz_init_set (rstate->algdata.lc->a, a);
- rstate->algdata.lc->c = c;
- mpz_init_set (rstate->algdata.lc->m, m);
+ mpz_init_set (rstate->_mp_algdata._mp_lc->_mp_a, a);
+ rstate->_mp_algdata._mp_lc->_mp_c = c;
+ mpz_init_set (rstate->_mp_algdata._mp_lc->_mp_m, m);
- rstate->alg = GMP_RAND_ALG_LC;
+ rstate->_mp_alg = GMP_RAND_ALG_LC;
}