Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(x/mint/simulation): use proper value of maxInt64
This change uses the proper value of maxInt64, inferred from math.MaxInt64 and typed as an int64 then passed into math/rand.Rand.Int63n(maxInt64) instead of the non-standard prior fidgetting that set maxInt64 as an int(^uint(0)>>1) which sadly will overflow on 32-bit systems because the size of int on 32-bit systems is 32 bits, on 64-bit systems is 64 bits, and moreover the prior code used int64(Rand.Intn(maxInt64)) which is unnecessary.
- Loading branch information