This commit is contained in:
Dominik Maier 2021-02-08 22:57:36 +01:00
parent 6bb691851f
commit 4e69648d26

View File

@ -602,7 +602,9 @@ where
{
let mut size = input.bytes().len();
if size == 0 {
input.bytes_mut().append(&mut rand.next().to_le_bytes().to_vec());
input
.bytes_mut()
.append(&mut rand.next().to_le_bytes().to_vec());
size = input.bytes().len();
}
let off = rand.below(size as u64 - 1) as usize;