Re: Problem with gmp_randinit_set

2017-02-17 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: > It shouldn't be too hard to rewrite randseed_mt to use mpn_powm, right? > Which probably didn't exist when the original version was written. Or if we want to take advantage of the structure, we need an mpn function to reduce numbers modulo 2^19937 -

Re: Problem with gmp_randinit_set

2017-02-17 Thread Pedro Gimeno
Torbjörn Granlund wrote, On 2017-02-16 23:19: > Pedro Gimeno writes: > I haven't read you xxtea patch yet, but let's first see that we agree on > the theory! > > I believe the named modes ECB, CTR, ICM, whatnot don't necessarily apply > to PRNG use as we have no