1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

refactor: remove unused code

This commit is contained in:
dudaodong
2023-09-19 17:44:49 +08:00
parent 91a0d3077d
commit 073c77e751

View File

@@ -29,14 +29,11 @@ func RandInt(min, max int) int {
if min == max {
return min
}
if max < min {
min, max = max, min
}
// fix: https://github.com/duke-git/lancet/issues/75
// r := rand.New(rand.NewSource(time.Now().UnixNano()))
// return r.Intn(max-min) + min
return rand.Intn(max-min) + min
}