Update replicators to use the storage blockhash to generate offsets (#4712)

This commit is contained in:
Sagar Dhawan
2019-06-17 16:39:26 -07:00
committed by GitHub
parent d86358eedc
commit 8fbf0e2d9f
2 changed files with 8 additions and 11 deletions

View File

@@ -437,7 +437,7 @@ impl Replicator {
use rand_chacha::ChaChaRng;
let mut rng_seed = [0u8; 32];
rng_seed.copy_from_slice(&self.signature.to_bytes()[0..32]);
rng_seed.copy_from_slice(&self.blockhash.as_ref());
let mut rng = ChaChaRng::from_seed(rng_seed);
for _ in 0..NUM_STORAGE_SAMPLES {
self.sampling_offsets