Skip to content

random_mod is not platform-independent #1009

@mrdomino

Description

@mrdomino

Uint::random_mod is based on random_mod_core, which samples entropy differently depending on whether target_pointer_width is 32 or 64. This results in the Rng state varying by platform, which in general results in different number sequences being generated, e.g. on amd64 vs wasm32.

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