mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-10 23:03:24 +08:00
go1.16 (#14783)
This commit is contained in:
5
vendor/github.com/go-redis/redis/v8/internal/rand/rand.go
generated
vendored
5
vendor/github.com/go-redis/redis/v8/internal/rand/rand.go
generated
vendored
@ -43,3 +43,8 @@ func (s *source) Seed(seed int64) {
|
||||
s.src.Seed(seed)
|
||||
s.mu.Unlock()
|
||||
}
|
||||
|
||||
// Shuffle pseudo-randomizes the order of elements.
|
||||
// n is the number of elements.
|
||||
// swap swaps the elements with indexes i and j.
|
||||
func Shuffle(n int, swap func(i, j int)) { pseudo.Shuffle(n, swap) }
|
||||
|
Reference in New Issue
Block a user