| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
(__gmp_randclear_mt, __gmp_randinit_mt_noseed): Make similar functions
look similar.
(__gmp_randclear_mt): Pass actually allocated size.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* randmt.c (randseed_mt, default_state): Fix off-by-one bug on padding.
|
|
|
|
|
| |
* randmt.c (randseed_mt): Fix off-by-one bug on padding. Add
ASSERT checking result of mpz_export.
|
|
|
|
| |
(randseed_mt): Add nails to mpz_export in case mt[i] more than 32 bits.
|
|
|
|
|
|
|
|
| |
* randmt.c (randseed_mt): Fix bug that might cause the generator to
return all zeros with certain seeds. Fix WARM_UP==0 case.
(gmp_randinit_mt): Initialize to a known state by default.
(randget_mt): Remove check for uninitialized buffer: no longer needed.
(recalc_buffer): Use ?: instead of two-element array.
|
|
|
|
|
|
|
| |
* randmt.c (mangle_seed): New function by Kevin.
(randseed_mt): Use it instead of mpz_powm, for performance. Remove
return value. Remove commented out code (an inferior alternative to
mpz_export).
|
|
|
|
|
|
|
|
|
|
| |
* randmt.c: Some constants made long for K&R compliance; remove UL at
the end of other constants; use mp_size_t where appropriate; use
mpz_export to split the seed.
* gmp-impl.h: Remove type cast in RNG_FNPTR and RNG_STATE, to allow
them to be used as lvalues.
* randclr.c, randmt.c, randsd.c: All callers changed.
|
| |
|
| |
|
|
* randmt.c: New file.
|