diff --git a/primitives/state-machine/Cargo.toml b/primitives/state-machine/Cargo.toml index dc54486e2078c..457bbac5d2640 100644 --- a/primitives/state-machine/Cargo.toml +++ b/primitives/state-machine/Cargo.toml @@ -35,7 +35,7 @@ tracing = { version = "0.1.22", optional = true } hex-literal = "0.3.1" sp-runtime = { version = "4.0.0-dev", path = "../runtime" } pretty_assertions = "0.6.1" -rand = { version = "0.7.2", feature = ["small_rng"] } +rand = { version = "0.7.2" } [features] default = ["std"] diff --git a/primitives/state-machine/src/lib.rs b/primitives/state-machine/src/lib.rs index 032899faeb523..e5ba9e1acb84b 100644 --- a/primitives/state-machine/src/lib.rs +++ b/primitives/state-machine/src/lib.rs @@ -1579,7 +1579,7 @@ mod tests { let mut seed = [0; 16]; for i in 0..50u32 { let mut child_infos = Vec::new(); - &seed[0..4].copy_from_slice(&i.to_be_bytes()[..]); + seed[0..4].copy_from_slice(&i.to_be_bytes()[..]); let mut rand = SmallRng::from_seed(seed); let nb_child_trie = rand.next_u32() as usize % 25;