File tree 1 file changed +9
-1
lines changed
library/std/src/sys/pal/unix
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,13 @@ mod imp {
62
62
unsafe { getrandom ( buf. as_mut_ptr ( ) . cast ( ) , buf. len ( ) , libc:: GRND_NONBLOCK ) }
63
63
}
64
64
65
- #[ cfg( any( target_os = "espidf" , target_os = "horizon" , target_os = "freebsd" , netbsd10) ) ]
65
+ #[ cfg( any(
66
+ target_os = "espidf" ,
67
+ target_os = "horizon" ,
68
+ target_os = "freebsd" ,
69
+ target_os = "dragonfly" ,
70
+ netbsd10
71
+ ) ) ]
66
72
fn getrandom ( buf : & mut [ u8 ] ) -> libc:: ssize_t {
67
73
unsafe { libc:: getrandom ( buf. as_mut_ptr ( ) . cast ( ) , buf. len ( ) , 0 ) }
68
74
}
@@ -73,6 +79,7 @@ mod imp {
73
79
target_os = "espidf" ,
74
80
target_os = "horizon" ,
75
81
target_os = "freebsd" ,
82
+ target_os = "dragonfly" ,
76
83
netbsd10
77
84
) ) ) ]
78
85
fn getrandom_fill_bytes ( _buf : & mut [ u8 ] ) -> bool {
@@ -85,6 +92,7 @@ mod imp {
85
92
target_os = "espidf" ,
86
93
target_os = "horizon" ,
87
94
target_os = "freebsd" ,
95
+ target_os = "dragonfly" ,
88
96
netbsd10
89
97
) ) ]
90
98
fn getrandom_fill_bytes ( v : & mut [ u8 ] ) -> bool {
You can’t perform that action at this time.
0 commit comments