linux: Remove redundant SwapPT in linux_getrandom()

This commit is contained in:
EnderIce2 2024-10-25 01:00:58 +03:00
parent c0df0291eb
commit 462907828d
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -3336,10 +3336,7 @@ static ssize_t linux_getrandom(SysFrm *, void *buf,
for (size_t i = 0; i < buflen; i++)
{
random = Random::rand16();
{
Memory::SwapPT swap(pcb->PageTable);
((uint8_t *)pBuf)[i] = uint8_t(random & 0xFF);
}
((uint8_t *)pBuf)[i] = uint8_t(random & 0xFF);
}
return buflen;
}