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: Hg200
Subject: [Octave-bug-tracker] [bug #58800] BIST for rng sometimes fails
Date: Thu, 23 Jul 2020 14:13:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

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

With Markus' patch (i mean that one from comment #10), Rik's code does not
error (tested with N = 10000) and the "tst("rng")" passes wo errors.

The Matlab statement for "rng("shuffle")" is: "... initializes the generator
based on the current time ...". What I want to know is the output of Matlab on
Windows 7 for Rik's code in comparison to Octave. If anyone can do that, I
would be interested.

@Michael:  " ... to do some fixed operation on the state (in the simplest
case, just add 1)". The implementation in randmtzig.cc looks "memoryless" to
me. That is, "init_mersenne_twister()" returns the same state if the same
entropy is given at initialization. It is not intended to add information
about the past. I would not recommend touching the implementation unless the
original algorithm (i.e. written in papers) does provide such a feature.


    _______________________________________________________

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]