Re: Problem with gmp_randinit_set

2017-02-14 Thread Pedro Gimeno
Torbjörn Granlund wrote, On 2017-02-15 03:40: > Pedro Gimeno writes: > > One possible fix would be to resurrect my patch for a different > seeding routine, which was based on the xxtea encryption > [...] > > I like the idea of applying a symmetric cipher for

Re: Problem with gmp_randinit_set

2017-02-14 Thread Torbjörn Granlund
Pedro Gimeno writes: Ah, yes, that was a problem that needed to be avoided. Thanks for looking into this. One possible fix would be to resurrect my patch for a different seeding routine, which was based on the xxtea encryption algorithm. That one is faster

Re: Problem with gmp_randinit_set

2017-02-14 Thread Pedro Gimeno
Torbjörn Granlund wrote, On 2017-02-15 00:45: > Pedro Gimeno writes: > > Torbjörn Granlund wrote, On 2017-02-14 01:41: > > > One can change Mersenne_Twister_Generator_Noseed to > > Mersenne_Twister_Generator to fix this (and move __gmp_randiset_mt to > >

Re: Problem with gmp_randinit_set

2017-02-14 Thread Torbjörn Granlund
Pedro Gimeno writes: Torbjörn Granlund wrote, On 2017-02-14 01:41: > One can change Mersenne_Twister_Generator_Noseed to > Mersenne_Twister_Generator to fix this (and move __gmp_randiset_mt to > randmts.c as mandated by Mersenne_Twister_Generator's scope), and

Re: Problem with gmp_randinit_set

2017-02-14 Thread Pedro Gimeno
Torbjörn Granlund wrote, On 2017-02-14 01:41: > One can change Mersenne_Twister_Generator_Noseed to > Mersenne_Twister_Generator to fix this (and move __gmp_randiset_mt to > randmts.c as mandated by Mersenne_Twister_Generator's scope), and then > your code supposedly runs without a crash. But I