aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/rand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/examples/rand.rs')
-rw-r--r--cortex-m-rt/examples/rand.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/examples/rand.rs b/cortex-m-rt/examples/rand.rs
index ec3afaa..358868b 100644
--- a/cortex-m-rt/examples/rand.rs
+++ b/cortex-m-rt/examples/rand.rs
@@ -16,8 +16,8 @@ use rand::SeedableRng;
// the program entry point
#[entry]
fn main() -> ! {
- let seed: [u8; 32] = [0; 32];
- let mut rng = rand::ChaChaRng::from_seed(seed);
+ let seed: [u8; 16] = [0; 16];
+ let mut rng = rand::rngs::SmallRng::from_seed(seed);
let _ = rng.gen::<u32>();
loop {}