Skip to content

Reseeding Xoroshiro128Plus not equivalent to creating a new one #89

@vyudu

Description

@vyudu

MWE (using RandomNumbers 1.6.0)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions