Problem with gmp_randinit_set

Torbjörn Granlund tg at gmplib.org
Thu Feb 16 22:30:44 UTC 2017


Pedro Gimeno <gmpdiscuss at formauri.es> writes:

  With something like the attached? Perhaps. In fact I don't know why it
  isn't doing it now. Can that structure possibly come from disk or some
  other place that makes the pointers invalid? I guess not.

That patch makes a lot of sense...  I'll apply it now.

Perhaps we should expand testing wrt this?

We should check that seeding is effective, that gmp_randinit_set(b, a)
make a and b behave the same including that the seed follows, and that
further seeding affects both identically.  More?


-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list