mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
6 lines
757 B
Markdown
6 lines
757 B
Markdown
# libSceRandom technical debt
|
|
|
|
### Functional
|
|
|
|
- [sceRandomGetRandomNumber](../../../core/libs/prx/libSceRandom/Export.cpp) (libSceRandom) - a null buffer returns `SCE_RANDOM_ERROR_INVALID` (0x817C0016) even when the size is 0; that is an assumption, not measured on hardware. shadPS4 (PS4, `src/core/libraries/random/random.cpp`, commit 0614ce324be092791b758d79f93d9f1ca5b10a81) does not check the buffer, and KytyPS5 (PS5, `src/libs/libNet.cpp`, commit 5e837a9beac82c031868eaad9348d6a48245fb99) rejects a null buffer only for a size above 0, so both return success for a null buffer of size 0. fpPS4 (PS4, `src/ps4_libscerandom.pas`, commit 04cefd43e6fddd1ab033e7980cd356d14c964905) rejects it, with `EINVAL` (22) where this library returns the SCE code.
|