summaryrefslogtreecommitdiff
path: root/randmt.c
Commit message (Collapse)AuthorAgeFilesLines
* Move global random file to new 'rand' subdirectory.Torbjorn Granlund2010-11-111-405/+0
|
* Add a copyriot year.tege2007-09-241-1/+1
|
* Update license to version 3.tege2007-09-181-4/+2
|
* (__gmp_randclear_mt): Initialize ALLOC field, like in __gmp_randinit_mt_noseed.tege2006-12-291-19/+21
| | | | | | (__gmp_randclear_mt, __gmp_randinit_mt_noseed): Make similar functions look similar. (__gmp_randclear_mt): Pass actually allocated size.
* (__gmp_randinit_mt_noseed): Initialize ALLOC field of result param.tege2006-11-221-4/+6
|
* Update FSF's address.tege2006-02-151-2/+2
|
* (__gmp_mt_recalc_buffer): Put parens around "&" expressions inside "!=".tege2003-12-051-3/+3
|
* * randmt.c: Move seeding to randmts.c, common defines in randmt.h.Kevin Ryde2003-11-101-153/+33
|
* * randlc2x.c, randmt.c: Add gmp_randinit_set support.Kevin Ryde2003-03-291-2/+23
|
* 2002-12-28 Pedro Gimeno <pggimeno@wanadoo.es>Kevin Ryde2002-12-281-6/+6
| | | | * randmt.c (randseed_mt, default_state): Fix off-by-one bug on padding.
* 2002-12-28 Pedro Gimeno <pggimeno@wanadoo.es>Kevin Ryde2002-12-271-0/+2
| | | | | * randmt.c (randseed_mt): Fix off-by-one bug on padding. Add ASSERT checking result of mpz_export.
* * randmt.c: Use gmp_uint_least32_t.Kevin Ryde2002-12-231-11/+11
| | | | (randseed_mt): Add nails to mpz_export in case mt[i] more than 32 bits.
* 2002-12-22 Pedro Gimeno <pggimeno@wanadoo.es>Kevin Ryde2002-12-211-29/+133
| | | | | | | | * 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.
* 2002-12-07 Pedro Gimeno <pggimeno@wanadoo.es>Kevin Ryde2002-12-061-13/+45
| | | | | | | * 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).
* 2002-09-24 Pedro Gimeno <pggimeno@wanadoo.es>Kevin Ryde2002-09-241-23/+34
| | | | | | | | | | * 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.
* (randget_mt): Fix typo.tege2002-09-181-1/+1
|
* * randmt.c (randseed_mt): Use mpz_init for mod and seed1, for safety.Kevin Ryde2002-09-181-9/+4
|
* 2002-09-18 Pedro Gimeno <pggimeno@wanadoo.es>Kevin Ryde2002-09-181-0/+358
* randmt.c: New file.