summaryrefslogtreecommitdiff
path: root/security/tor-browser/patches/patch-third__party_rust_getrandom_src_lib.rs
blob: 334578fd3428b531497ff797ecd72479850219fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-third__party_rust_getrandom_src_lib.rs,v 1.1 2020/10/07 11:10:35 wiz Exp $

https://github.com/rust-random/getrandom/pull/115

--- third_party/rust/getrandom/src/lib.rs.orig	2020-06-02 23:37:31.000000000 +0000
+++ third_party/rust/getrandom/src/lib.rs
@@ -17,7 +17,7 @@
 //! | macOS, iOS       | [`SecRandomCopyBytes`][4]
 //! | FreeBSD          | [`kern.arandom`][5]
 //! | OpenBSD, Bitrig  | [`getentropy`][6]
-//! | NetBSD           | [`/dev/urandom`][7] after reading from `/dev/random` once
+//! | NetBSD           | [`kern.arandom`][5]
 //! | Dragonfly BSD    | [`/dev/random`][8]
 //! | Solaris, illumos | [`getrandom`][9] system call if available, otherwise [`/dev/random`][10]
 //! | Fuchsia OS       | [`cprng_draw`][11]
@@ -184,7 +184,7 @@ mod_use!(cfg(target_os = "illumos"), sol
 mod_use!(cfg(target_os = "ios"), macos);
 mod_use!(cfg(target_os = "linux"), linux_android);
 mod_use!(cfg(target_os = "macos"), macos);
-mod_use!(cfg(target_os = "netbsd"), use_file);
+mod_use!(cfg(target_os = "netbsd"), freebsd);
 mod_use!(cfg(target_os = "openbsd"), openbsd_bitrig);
 mod_use!(cfg(target_os = "redox"), use_file);
 mod_use!(cfg(target_os = "solaris"), solaris_illumos);