feat(random): implement sceRandomGetRandomNumber #8
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Pacuka on 2026-09-26T10:14:55Z.
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 #7.🤖 Generated with Claude Code