Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #131887

Merged
merged 23 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
da44e3f
Start test case for `rjmp` regression test
jfrimmel Oct 14, 2024
652ba66
Add check-annotations ensuring correct label
jfrimmel Oct 15, 2024
db6c736
Allow the compiler to select any register
jfrimmel Oct 15, 2024
ab00841
Convert to a `rmake`-test
jfrimmel Oct 15, 2024
bb8db13
Simplify test and make it more reliable
jfrimmel Oct 15, 2024
24810b0
Partially stabilize const_pin
GKFX Sep 9, 2024
3ed5d55
Fix predicate signatures in retain_mut docs
collinoc Oct 17, 2024
a35ed2f
Use `rust-lld` instead of `avr-gcc` as the linker
jfrimmel Oct 15, 2024
cdacdae
remove outdated documentation for `repeat_n`
AnthonyMikh Oct 17, 2024
7b2320c
Avoid shadowing user provided types or type aliases in `thread_local!`
jieyouxu Oct 18, 2024
275ec06
Default to the medium code model on OpenHarmony LoongArch target
heiher Oct 18, 2024
e20636a
Add entropy source for RTEMS
thesummer Oct 16, 2024
4277160
checktools.sh: add link to issue for more context about disabled Miri…
RalfJung Oct 18, 2024
cdbf28a
Dont ICE when computing coverage of synthetic async closure body
compiler-errors Oct 16, 2024
dae3076
Rollup merge of #130136 - GKFX:stabilize-const-pin, r=dtolnay
jieyouxu Oct 18, 2024
ebff167
Rollup merge of #131755 - jfrimmel:avr-rjmp-offset-regression-test, r…
jieyouxu Oct 18, 2024
951c0cd
Rollup merge of #131774 - thesummer:rtems-add-getentropy, r=joboet
jieyouxu Oct 18, 2024
aae4730
Rollup merge of #131802 - compiler-errors:fnonce-coverage, r=Zalathar
jieyouxu Oct 18, 2024
759820e
Rollup merge of #131809 - collinoc:fix-retain-mut-docs, r=jhpratt
jieyouxu Oct 18, 2024
64bf99b
Rollup merge of #131858 - AnthonyMikh:AnthonyMikh/repeat_n-is-not-tha…
jieyouxu Oct 18, 2024
af85d52
Rollup merge of #131866 - jieyouxu:thread_local, r=jhpratt
jieyouxu Oct 18, 2024
9a664a0
Rollup merge of #131874 - heiher:loong-ohos-medium, r=jieyouxu
jieyouxu Oct 18, 2024
80a8f7b
Rollup merge of #131877 - RalfJung:checktools-comment, r=ChrisDenton
jieyouxu Oct 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add entropy source for RTEMS
  • Loading branch information
thesummer committed Oct 18, 2024
commit e20636a78621d823334f3114d5d49ab8a442dfa3
1 change: 1 addition & 0 deletions library/std/src/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use crate::sys::random as sys;
/// Horizon | `getrandom` shim
/// Hurd, L4Re, QNX | `/dev/urandom`
/// Redox | `/scheme/rand`
/// RTEMS | [`arc4random_buf`](https://docs.rtems.org/branches/master/bsp-howto/getentropy.html)
/// SGX | [`rdrand`](https://en.wikipedia.org/wiki/RDRAND)
/// SOLID | `SOLID_RNG_SampleRandomBytes`
/// TEEOS | `TEE_GenerateRandom`
Expand Down
2 changes: 2 additions & 0 deletions library/std/src/sys/random/arc4random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#[cfg(not(any(
target_os = "haiku",
target_os = "illumos",
target_os = "rtems",
target_os = "solaris",
target_os = "vita",
)))]
Expand All @@ -21,6 +22,7 @@ use libc::arc4random_buf;
#[cfg(any(
target_os = "haiku", // See https://git.haiku-os.org/haiku/tree/headers/compatibility/bsd/stdlib.h
target_os = "illumos", // See https://www.illumos.org/man/3C/arc4random
target_os = "rtems", // See https://docs.rtems.org/branches/master/bsp-howto/getentropy.html
target_os = "solaris", // See https://docs.oracle.com/cd/E88353_01/html/E37843/arc4random-3c.html
target_os = "vita", // See https://github.com/vitasdk/newlib/blob/b89e5bc183b516945f9ee07eef483ecb916e45ff/newlib/libc/include/stdlib.h#L74
))]
Expand Down
1 change: 1 addition & 0 deletions library/std/src/sys/random/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cfg_if::cfg_if! {
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "rtems",
target_os = "solaris",
target_os = "vita",
))] {
Expand Down
Loading