octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58800] BIST for rng sometimes fails


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #58800] BIST for rng sometimes fails
Date: Thu, 23 Jul 2020 06:51:00 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 Edg/84.0.522.40

Follow-up Comment #6, bug #58800 (project octave):

Maybe we could use the WinAPI to get entropy on Windows (which doesn't have
/dev/urandom).
That way we wouldn't have to rely on the clock (in function
init_mersenne_twister in liboctave/numeric/randmtzig.cc).

Possible sources could be:
https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
(Available since Windows XP. But now deprecated.)
https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
(Current interface. But only available since Windows Vista.)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58800>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]