mirror of
https://github.com/restic/restic.git
synced 2025-08-21 10:57:55 +00:00
Fix Random() function
This commit is contained in:
@@ -79,7 +79,7 @@ func Random(seed, count int) []byte {
|
||||
|
||||
for j := range data {
|
||||
cur := i + j
|
||||
if len(p) >= cur {
|
||||
if cur >= len(p) {
|
||||
break
|
||||
}
|
||||
p[cur] = data[j]
|
||||
|
Reference in New Issue
Block a user