1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

Fix Random() function

This commit is contained in:
Alexander Neumann 2017-01-25 13:25:39 +01:00
parent 439d3107f9
commit c99a44b122

View file

@ -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]