mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-23 14:29:39 +00:00
Fix /dev/random creation
This commit is contained in:
parent
2d980fa608
commit
f74c15f3ee
@ -33,8 +33,7 @@ std::pair<uint32_t, uint32_t> convProtection(int prot) {
|
||||
std::unique_ptr<IFile> createType_dev(std::filesystem::path path, std::ios_base::openmode mode) {
|
||||
LOG_USE_MODULE(filesystem);
|
||||
|
||||
// todo: /dev/rng? No ioctl for now
|
||||
if (path == "/dev/urandom" || path == "/dev/urandom") {
|
||||
if (path == "/dev/random" || path == "/dev/urandom") {
|
||||
return createType_random();
|
||||
} else if (path == "/dev/rng") {
|
||||
return createType_rng();
|
||||
|
Loading…
Reference in New Issue
Block a user