File: 2001_getrandom.patch

package info (click to toggle)
rust-ahash 0.8.12-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,416 kB
  • sloc: makefile: 4; sh: 3
file content (30 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: use older branch of crate getrandom
 This essentially reverts upstream git commit 08a2be6.
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: https://bugs.debian.org/1095488
Forwarded: not-needed
Last-Update: 2025-09-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -83,7 +83,7 @@
 serde = { version = "1.0.117", optional = true }
 cfg-if = "1.0"
 portable-atomic = { version = "1.0.0", optional = true }
-getrandom = { version = "0.3.1", optional = true }
+getrandom = { version = "0.2.7", optional = true }
 zerocopy = { version = "0.8.24", default-features = false, features = ["simd"] }
 
 [target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies]
--- a/src/random_state.rs
+++ b/src/random_state.rs
@@ -74,7 +74,7 @@
 
             SEEDS.get_or_init(|| {
                 let mut result: [u8; 64] = [0; 64];
-                getrandom::fill(&mut result).expect("getrandom::fill() failed.");
+                getrandom::getrandom(&mut result).expect("getrandom::getrandom() failed.");
                 Box::new(result.convert())
             })
         }