Problem with gmp_randinit_set

Pedro Gimeno gmpdiscuss at formauri.es
Fri Mar 3 02:10:42 UTC 2017


Marco Bodrato wrote, On 2017-03-02 21:37:

> I attach a patch, it applies to the current development code... it is not
> meant to be simply a proposed replacement for the seeding function, it's a
> proof of concept.

Just one comment. You're switching algorithms for the top half. Wouldn't it be easier to change the key (the k[] array) instead? That might also produce less correlation in the upper half, not sure. Obviously a permutation and its inverse are correlated, but I don't know how much that correlation would be apparent in standard statistical tests. It's probably an insignificant detail, though.

The current key was chosen at random, if that helps.

Thanks for looking into this.


More information about the gmp-bugs mailing list