Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move global random file to new 'rand' subdirectory. | Torbjorn Granlund | 2010-11-11 | 1 | -405/+0 |
| | |||||
* | Add a copyriot year. | tege | 2007-09-24 | 1 | -1/+1 |
| | |||||
* | Update license to version 3. | tege | 2007-09-18 | 1 | -4/+2 |
| | |||||
* | (__gmp_randclear_mt): Initialize ALLOC field, like in __gmp_randinit_mt_noseed. | tege | 2006-12-29 | 1 | -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. | tege | 2006-11-22 | 1 | -4/+6 |
| | |||||
* | Update FSF's address. | tege | 2006-02-15 | 1 | -2/+2 |
| | |||||
* | (__gmp_mt_recalc_buffer): Put parens around "&" expressions inside "!=". | tege | 2003-12-05 | 1 | -3/+3 |
| | |||||
* | * randmt.c: Move seeding to randmts.c, common defines in randmt.h. | Kevin Ryde | 2003-11-10 | 1 | -153/+33 |
| | |||||
* | * randlc2x.c, randmt.c: Add gmp_randinit_set support. | Kevin Ryde | 2003-03-29 | 1 | -2/+23 |
| | |||||
* | 2002-12-28 Pedro Gimeno <pggimeno@wanadoo.es> | Kevin Ryde | 2002-12-28 | 1 | -6/+6 |
| | | | | * randmt.c (randseed_mt, default_state): Fix off-by-one bug on padding. | ||||
* | 2002-12-28 Pedro Gimeno <pggimeno@wanadoo.es> | Kevin Ryde | 2002-12-27 | 1 | -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 Ryde | 2002-12-23 | 1 | -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 Ryde | 2002-12-21 | 1 | -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 Ryde | 2002-12-06 | 1 | -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 Ryde | 2002-09-24 | 1 | -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. | tege | 2002-09-18 | 1 | -1/+1 |
| | |||||
* | * randmt.c (randseed_mt): Use mpz_init for mod and seed1, for safety. | Kevin Ryde | 2002-09-18 | 1 | -9/+4 |
| | |||||
* | 2002-09-18 Pedro Gimeno <pggimeno@wanadoo.es> | Kevin Ryde | 2002-09-18 | 1 | -0/+358 |
* randmt.c: New file. |