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: Rik
Subject: [Octave-bug-tracker] [bug #58800] BIST for rng sometimes fails
Date: Wed, 22 Jul 2020 23:38:45 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

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

This is probably due to the low precision timer on Windows.  If I remember
correctly it is only good to .01 seconds.

To verify, could the original reporter try this simplified example?



N = 100;

for i = 1:N
  rand ("state", "reset"), s1 = rand ("state");
  rand ("state", "reset"), s2 = rand ("state");
  assert (any (s1 != s2));
endfor


I've attached the same code as an m-file.



(file #49532)
    _______________________________________________________

Additional Item Attachment:

File name: tst_rand_reset.m               Size:0 KB
    <https://file.savannah.gnu.org/file/tst_rand_reset.m?file_id=49532>



    _______________________________________________________

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]