aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cortex-m-rt/Cargo.toml3
-rw-r--r--cortex-m-rt/examples/rand.rs4
-rw-r--r--cortex-m-rt/macros/Cargo.toml3
3 files changed, 6 insertions, 4 deletions
diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml
index 1975ff6..5f80353 100644
--- a/cortex-m-rt/Cargo.toml
+++ b/cortex-m-rt/Cargo.toml
@@ -26,7 +26,8 @@ cortex-m-semihosting = "0.3"
[dev-dependencies.rand]
default-features = false
-version = "0.5.5"
+features = ["small_rng"]
+version = "0.7"
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
compiletest_rs = "0.3.25"
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 {}
diff --git a/cortex-m-rt/macros/Cargo.toml b/cortex-m-rt/macros/Cargo.toml
index 4d8d4d8..4e46aaa 100644
--- a/cortex-m-rt/macros/Cargo.toml
+++ b/cortex-m-rt/macros/Cargo.toml
@@ -22,8 +22,9 @@ features = ["extra-traits", "full"]
version = "1.0"
[dependencies.rand]
-version = "0.5.5"
default-features = false
+features = ["small_rng"]
+version = "0.7"
[dev-dependencies]
cortex-m-rt = { path = "..", version = "0.6" }