mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
Kernel: Remove the now defunct LOCKER(..)
macro.
This commit is contained in:
parent
0d5827f865
commit
8d6e9fad40
31 changed files with 196 additions and 198 deletions
|
@ -125,7 +125,7 @@ bool get_good_random_bytes(u8* buffer, size_t buffer_size, bool allow_wait, bool
|
|||
if (can_wait && allow_wait) {
|
||||
for (;;) {
|
||||
{
|
||||
LOCKER(KernelRng::the().lock());
|
||||
Locker locker(KernelRng::the().lock());
|
||||
if (kernel_rng.resource().get_random_bytes(buffer, buffer_size)) {
|
||||
result = true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue