Random.Next eventually only returns zero

Description

See https://stackoverflow.com/questions/4613693/random-next-sometimes-returns-same-number-in-separate-threads and https://csharpindepth.com/Articles/Random

The solution is to either switch to a round-robin mechanism or develop a thread-safe randomizer. Another possible solution that I am not to fond of is to detect that zero is being returned consecutively and re-instantiate the random instance.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 12, 2022 at 2:14 AM
Updated February 12, 2022 at 10:43 AM
Resolved January 13, 2022 at 11:20 PM
Instabug