Skip to content

Commit e26edf0

Browse files
authored
Rollup merge of rust-lang#133313 - thesummer:fix-arc4random, r=cuviper
Use arc4random of libc for RTEMS target Switch to the `arc4random` from libc. It is available since libc 0.2.162
2 parents 90a85ef + 8be952b commit e26edf0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

std/src/sys/random/arc4random.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#[cfg(not(any(
1313
target_os = "haiku",
1414
target_os = "illumos",
15-
target_os = "rtems",
1615
target_os = "solaris",
1716
target_os = "vita",
1817
)))]
@@ -22,7 +21,6 @@ use libc::arc4random_buf;
2221
#[cfg(any(
2322
target_os = "haiku", // See https://git.haiku-os.org/haiku/tree/headers/compatibility/bsd/stdlib.h
2423
target_os = "illumos", // See https://www.illumos.org/man/3C/arc4random
25-
target_os = "rtems", // See https://docs.rtems.org/branches/master/bsp-howto/getentropy.html
2624
target_os = "solaris", // See https://docs.oracle.com/cd/E88353_01/html/E37843/arc4random-3c.html
2725
target_os = "vita", // See https://github.com/vitasdk/newlib/blob/b89e5bc183b516945f9ee07eef483ecb916e45ff/newlib/libc/include/stdlib.h#L74
2826
))]

0 commit comments

Comments
 (0)