Xray-core/common/dice
Kuzmin Vladimir d7c5a0fc5f
Fix int overflow on x32 processors causing panic (#3810)
During the roll, "duration" is converted to int, causing overflow on x32 processors. The value may be very small or negative, causing a panic in rand.Intn.
2024-09-14 23:47:16 -04:00
..
dice_test.go v1.1.0 2020-12-04 09:36:16 +08:00
dice.go Fix int overflow on x32 processors causing panic (#3810) 2024-09-14 23:47:16 -04:00