JuliaRandom / JuliaRandom/RandomNumbers.jl

Reseeding Xoroshiro128Plus not equivalent to creating a new one

Aperta
#89 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
100
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

MWE (using RandomNumbers 1.6.0)

```julia
julia> using RandomNumbers

julia> seed = 12
12

julia> rng = Xorshifts.Xoroshiro128Plus(12)
RandomNumbers.Xorshifts.Xoroshiro128Plus(0x591545ee404ceb86, 0xe9c6c533699b4284)

julia> Random.seed!(rng, 12)
RandomNumbers.Xorshifts.Xoroshiro128Plus(0x018c018c0000000c, 0x8180018000003001)
```

So, I may be misunderstanding what should happen here, but from the `Random.seed!` doc string I would have expected the two objects to be the same.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reproducing the Julia MWE with Xoroshiro128Plus and compare the constructor with Random.seed! for the same seed. Trace the relevant entry points and add coverage showing the intended equivalence; done means reseeding an existing generator produces the same state as constructing a new one.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
julia
Ambito
data
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.