Commit 25ce22c5 authored by 袁兴强's avatar 袁兴强

return positive random

parent c25ac1d7
......@@ -110,6 +110,9 @@ func getRandom() int64 {
for _, c := range hash {
rand = rand*256 + int64(c)
}
if rand < 0 {
return -rand
}
return rand
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment