1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
--- rust-const-random-macro-0.1.16.orig/Cargo.toml
+++ rust-const-random-macro-0.1.16/Cargo.toml
@@ -28,7 +28,7 @@ repository = "https://github.com/tkaitch
proc-macro = true
[dependencies.getrandom]
-version = "0.2.0"
+version = ">= 0.3, < 0.5"
[dependencies.once_cell]
version = "1.15"
--- rust-const-random-macro-0.1.16.orig/src/span.rs
+++ rust-const-random-macro-0.1.16/src/span.rs
@@ -12,7 +12,7 @@ fn get_seed() -> &'static [u8] {
Box::new(value.as_bytes().to_vec())
} else {
let mut value = [0u8; 32];
- getrandom::getrandom(&mut value).unwrap();
+ getrandom::fill(&mut value).unwrap();
Box::new(value.to_vec())
}
})[..]
|