mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Fix Random() function
This commit is contained in:
parent
439d3107f9
commit
c99a44b122
@ -79,7 +79,7 @@ func Random(seed, count int) []byte {
|
|||||||
|
|
||||||
for j := range data {
|
for j := range data {
|
||||||
cur := i + j
|
cur := i + j
|
||||||
if len(p) >= cur {
|
if cur >= len(p) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
p[cur] = data[j]
|
p[cur] = data[j]
|
||||||
|
Loading…
Reference in New Issue
Block a user