File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,14 @@ mod imp {
59
59
unsafe { getrandom ( buf. as_mut_ptr ( ) . cast ( ) , buf. len ( ) , libc:: GRND_NONBLOCK ) }
60
60
}
61
61
62
- #[ cfg( any( target_os = "espidf" , target_os = "horizon" , target_os = "freebsd" , netbsd10) ) ]
62
+ #[ cfg( any(
63
+ target_os = "espidf" ,
64
+ target_os = "horizon" ,
65
+ target_os = "freebsd" ,
66
+ netbsd10,
67
+ target_os = "illumos" ,
68
+ target_os = "solaris"
69
+ ) ) ]
63
70
fn getrandom ( buf : & mut [ u8 ] ) -> libc:: ssize_t {
64
71
unsafe { libc:: getrandom ( buf. as_mut_ptr ( ) . cast ( ) , buf. len ( ) , 0 ) }
65
72
}
@@ -83,6 +90,8 @@ mod imp {
83
90
target_os = "horizon" ,
84
91
target_os = "freebsd" ,
85
92
target_os = "dragonfly" ,
93
+ target_os = "solaris" ,
94
+ target_os = "illumos" ,
86
95
netbsd10
87
96
) ) ) ]
88
97
fn getrandom_fill_bytes ( _buf : & mut [ u8 ] ) -> bool {
@@ -96,6 +105,8 @@ mod imp {
96
105
target_os = "horizon" ,
97
106
target_os = "freebsd" ,
98
107
target_os = "dragonfly" ,
108
+ target_os = "solaris" ,
109
+ target_os = "illumos" ,
99
110
netbsd10
100
111
) ) ]
101
112
fn getrandom_fill_bytes ( v : & mut [ u8 ] ) -> bool {
You can’t perform that action at this time.
0 commit comments