x/mobile: go rand crash #21112
Labels
FrozenDueToAge
mobile
Android, iOS, and x/mobile
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8.3 darwin/amd64
What operating system and processor architecture are you using (
go env
)?android
What did you do?
Seems like rand.Perm() has a bug, I'm getting a lot of crashes in my torrent app:
Seems like in rare conditions, function crashes while calulating 'j := r.Intn(i + 1)' which should be 'j := r.Intn(i)'
The text was updated successfully, but these errors were encountered: