modules/gacha: Fix implementation of random

master
Luther Wen Xu 2019-11-28 12:11:06 +07:00
parent a49f97dab1
commit 19e016ae78
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 1 additions and 1 deletions

@ -16,7 +16,7 @@ func (cryptoSource) Int63() int64 {
if err != nil { if err != nil {
panic(err) panic(err)
} }
return int64(value ^ uint64(1<<63)) return int64(value & ^uint64(1<<63))
} }
func (cryptoSource) Seed(seed int64) {} func (cryptoSource) Seed(seed int64) {}