Repository navigation
feat(random): implement sceRandomGetRandomNumber - #8
Merged
Merged
Conversation
Fill the buffer from std::random_device and reject a null buffer or a size above SCE_RANDOM_MAX_SIZE (64) with SCE_RANDOM_ERROR_INVALID, as the system library does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GautamMIH
added a commit
to GautamMIH/AnyPS5
that referenced
this pull request
Sep 26, 2026
Brings in upstream's merged PRs boykopovar#3 (homebrew compatibility: guest stdio streams, formatting, directories, environment, signals, UDP sockets, dynamic module loading, working directory, mspace, errno messages), boykopovar#7 (Linux runtime fixes), boykopovar#8 (sceRandom) and boykopovar#9 (sceRtc). Conflict resolution: - Rendering waits: adopt upstream's RenderingWait/BufferReuseTracker design; drop this branch's WAIT_FLIP_DONE packet. sceAgcDcb/AcbWaitUntilSafeFor- Rendering now emit upstream's 4-dword rendering-wait packet. - ResolvePath: upstream's working-directory resolver, plus host /dev devices and the AMPR asset-container fallback for missing /app0 files. - Relinker: keep the DT_HASH symbol-count fallback, adopt optional PLT relocations, and bound the symbol count by relocation indices when neither DT_SCE_SYMTABSZ nor DT_HASH exists (upstream's optional_plt/empty_tls images). --to-intel output now actually reaches the relink pipeline. - libc: upstream's Rtc, Random, errno messages (guest FreeBSD numbering), pthread_once, stream/string/formatting functions replace this branch's duplicates; Mspace keeps upstream's in-memory arena layout and adds library-owned arenas, stats, memalign/reallocalign and IsHeapEmpty. - DirectMemory: register the main image, keep the host mprotect fallback for other modules, and make executable pages readable. - close() routes socket descriptors to the guest socket runtime. All 31 CTest suites pass, as do this branch's test executables (apart from the three pre-existing graphics-test failures). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ycarogabriel-lgtm
pushed a commit
to ycarogabriel-lgtm/AnyPS5
that referenced
this pull request
Oct 18, 2026
…module-info-macos feat(libkernel): sceKernelGetModuleInfoFromAddr on macOS hosts, without reading st_size
This was referenced Oct 22, 2026
12 tasks done
Merged
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sceRandomGetRandomNumberwas aNotImplementedstub. The Smurfs – Dreams (Unreal Engine) calls it during startup. This PR is the first of the smaller library implementations mentioned in #7.Changes
std::random_device.SCE_RANDOM_ERROR_INVALID(0x817C0016) for a null buffer or a size aboveSCE_RANDOM_MAX_SIZE(64), matching the system library, and leave the buffer untouched in that case.guest_randomtest that covers the invalid arguments, a zero size, partial-word sizes (no write pastsize), and two 64-byte draws that differ.Testing (Linux, GCC)
guest_randompasses. ctest: 23/29 pass; the 6 failures are the same pre-existing Linux failures listed in fix: Linux build and runtime fixes found while booting a retail UE title #7.🤖 Generated with Claude Code