JuliaRandom / JuliaRandom/RandomNumbers.jl
Reseeding Xoroshiro128Plus not equivalent to creating a new one
- 主要语言
- Julia
- 星标
- 100
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
这个仓库没有索引到贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- julia
- 领域
- data
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100