Fix /dev/random creation

This commit is contained in:
igor725 2024-04-10 17:20:29 +03:00
parent 2d980fa608
commit f74c15f3ee
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -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();