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