Skip to content

RandomNumberGeneratorTests.GetInt32_MaskRangeCorrect failing sporadically in CI #29832

Description

@ericstj

https://dev.azure.com/dnceng/public/_build/results?buildId=216796&view=ms.vss-test-web.build-test-results-tab&runId=5324506&resultId=383947&paneView=debug

System.Security.Cryptography.RNG.Tests.RandomNumberGeneratorTests.GetInt32_MaskRangeCorrect(fromInclusive: 16777214, toExclusive: 16777217)

Occurred number of times within threshold. Actual: 0.07166666666666671\nExpected: True\nActual: False

Stack trace
   at System.Security.Cryptography.RNG.Tests.RandomNumberGeneratorTests.VerifyDistribution(ReadOnlySpan`1 numbers, Double expected) in /_/src/System.Security.Cryptography.Algorithms/tests/RandomNumberGeneratorTests.netcoreapp.cs:line 279
   at System.Security.Cryptography.RNG.Tests.RandomNumberGeneratorTests.GetInt32_MaskRangeCorrect(Int32 fromInclusive, Int32 toExclusive) in /_/src/System.Security.Cryptography.Algorithms/tests/RandomNumberGeneratorTests.netcoreapp.cs:line 257

I've seen this failure on a few PRs but haven't yet seen a bug. In this case it was ARM64.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions