mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-13 00:09:19 +00:00
linux: Remove redundant SwapPT in linux_getrandom()
This commit is contained in:
@ -3336,11 +3336,8 @@ static ssize_t linux_getrandom(SysFrm *, void *buf,
|
|||||||
for (size_t i = 0; i < buflen; i++)
|
for (size_t i = 0; i < buflen; i++)
|
||||||
{
|
{
|
||||||
random = Random::rand16();
|
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;
|
return buflen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user