Skip to content

Commit

Permalink
fix: 修正 New 初始化时误将 rand 的全局函数为参数 r.Uint64 的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Mar 22, 2024
1 parent aa426fd commit 9003acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rands.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func New[T Char](r *rand.Rand, bufferSize, min, max int, bs []T) *Rands[T] {
u64 = rand.Uint64
} else {
intn = r.IntN
u64 = rand.Uint64
u64 = r.Uint64
}

return &Rands[T]{
Expand Down

0 comments on commit 9003acd

Please sign in to comment.