Skip to content

Commit c16a770

Browse files
committed
std::rand: adding solaris/illumos for getrandom support.
1 parent 7c4ac06 commit c16a770

File tree

1 file changed

+4
-0
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+4
-0
lines changed

library/std/src/sys/pal/unix/rand.rs

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ mod imp {
8383
target_os = "horizon",
8484
target_os = "freebsd",
8585
target_os = "dragonfly",
86+
target_os = "solaris",
87+
target_os = "illumos",
8688
netbsd10
8789
)))]
8890
fn getrandom_fill_bytes(_buf: &mut [u8]) -> bool {
@@ -96,6 +98,8 @@ mod imp {
9698
target_os = "horizon",
9799
target_os = "freebsd",
98100
target_os = "dragonfly",
101+
target_os = "solaris",
102+
target_os = "illumos",
99103
netbsd10
100104
))]
101105
fn getrandom_fill_bytes(v: &mut [u8]) -> bool {

0 commit comments

Comments
 (0)