Skip to content

SysRandom.NextSigned() #169

Closed
Closed

Description

@skyoxZ

return _rnd.Next(int.MinValue, int.MinValue);

Should be return _rnd.Next(int.MinValue, int.MaxValue);

Activity

  1. TomFinley commented on May 16, 2018

    @TomFinley
    Contributor

    Oh that is nasty. Thanks @skyoxZ .

    Fortunately, at least in this codebase, it's used in exactly one place:

    _forceShuffleSeed = args.ForceShuffleSeed ?? Host.Rand.NextSigned();

    That is, it derive a random seed for some other PRNG. If I think about how that class is used the effects will be limited, but we should definitely fix it.

  2. added this to the 0518 milestone on May 16, 2018
  3. mikaelm12 commented on May 16, 2018

    @mikaelm12

    Seems like this issue has been resolved here: c5d168d

  4. Ivanidzo4ka commented on May 16, 2018

    @Ivanidzo4ka
    Contributor

    Address in PR #172

  5. ghost locked as resolved and limited conversation to collaborators on Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions