1
0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-03-07 17:46:20 +03:00

4 Commits

Author SHA1 Message Date
Kuzmin Vladimir
d7c5a0fc5f
Fix int overflow on x32 processors causing panic ()
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
A1lo
a994bf8b04
chore: fix some errors detected by staticcheck ()
* chore: fix some errors detected by staticcheck

* feat: remove `rand.Seed()` usage for possibly using "fastrand64" runtime to avoid locking

ref: https://pkg.go.dev/math/rand#Seed
2024-03-03 10:52:22 -05:00
RPRX
16544c18ab v1.1.0 2020-12-04 09:36:16 +08:00
RPRX
c7f7c08ead v1.0.0 2020-11-25 19:01:53 +08:00