Skip to content

Change source of randomness away from .NET's Random #395

@Ellendar

Description

@Ellendar

.NET's Random class does not produce consistent values across different platforms or major versions of .NET. This causes seeds on non-windows platforms to be different. Short term, users can use the web version, which does produce results consistent with windows. For 5.2, (not 5.1) we should switch to a source of randomness that is consistent across platforms.

Ideally this source uses the same or similar interface to the existing Random so we don't have to update hundreds of references across the code. Worst case we can put a wrapper around it to minimize work.

MathNet.Numerics seems to be decently recommended and is MIT licensed. But I have not looked deeply into it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    modernizationUpdates to underlying systems to bring them to a more modern standard.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions