feat(libScePosixForWebKit): implement arc4random_buf #2865
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2865"
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 babyhuey on 2026-10-10T16:53:29Z.
What
Implements
arc4random_buf(n1KOc0lTUEs) in libScePosixForWebKit. It fills the buffer from a thread-localstd::random_device, assceRandomGetRandomNumberin libSceRandom already does (getrandom//dev/urandomwith libstdc++ on Linux,rand_swith MinGW), and writes exactlynbytes. Like FreeBSDarc4random_buf, it has no failure result.This is #1637 again, which was closed until a title stops at it on
main. ProsperoTV (PPSA99003) now does onmain57f96fd2(catalog build,eboot.binandsce_module/libc.prxunwrapped as #2605 requires; tracked in #1578):main, Linux:app.elf: symbol lookup error: app.elf: undefined symbol: n1KOc0lTUEsmain, Windows:FAIL: unresolved ELF import n1KOc0lTUEs (arc4random_buf) from libScePosixForWebKit.prxapp.elf: symbol lookup error: app.elf: undefined symbol: 04AjkP0jO9U(_umtx_op, #1482)EVO Player (PPSA99039) reaches it next once
pthread_set_name_np(#1872) is in, on Linux and Windows.Tested
Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release, on
57f96fd2:guest_posix_randompasses 5/5 on both (--repeat until-fail:5). ProsperoTV gets past it on both; Windows with this PR:FAIL: unresolved ELF import 04AjkP0jO9U (_umtx_op) from libkernel.prx.check_conventions.pypasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:53:51Z.
Progress report (
57f96fd→5ac1082)➖ System libraries: 84.52% (+0.0%, +1 implemented functions)
✅ 1 implemented
arc4random_buf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T17:11:04Z.
The red
write-watch (macos-15-intel)check iswrite_watch_threadstiming out at 30 s (80% tests passed, 1 tests failed out of 5); the other four write-watch tests pass. That job builds onlyWriteWatch.cppandGuestWriteWatch.cpp, which this PR doesn't touch, and the same timeout showed up on #1772 (dff45a05). I can't rerun it from a fork.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:04:57Z.
Checked on Linux with the PR merged onto main:
guest_posix_randompasses (5/5 repeats), and without the export the test does not link. The title stop onn1KOc0lTUEsis the one from #1578 and matches the condition set in #1637. The redwrite-watch (macos-15-intel)job was a timeout inwrite_watch_threads, which this PR doesn't touch; it passed on rerun. Merging.