Skip to content

Commit

Permalink
Change random seed
Browse files Browse the repository at this point in the history
For reasons unknown, this seed generates weird results.
  • Loading branch information
dpc committed Jul 30, 2017
1 parent a183a65 commit 51a067c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn bup_selftest()
pub fn test_data_1mb() -> Vec<u8> {
let mut v = vec![0x0; 1024 * 1024];

let seed: &[_] = &[1, 2, 3, 4];
let seed: &[_] = &[2, 1, 255, 70];
let mut rng: StdRng = SeedableRng::from_seed(seed);
for i in 0..v.len() {
v[i] = rng.gen();
Expand Down

0 comments on commit 51a067c

Please sign in to comment.