diff --git a/nx/include/switch/kernel/random.h b/nx/include/switch/kernel/random.h index 45abe1d6..05c0b172 100644 --- a/nx/include/switch/kernel/random.h +++ b/nx/include/switch/kernel/random.h @@ -1,4 +1,4 @@ // Copyright 2018 plutoo void randomGet(u8* buf, size_t len); -u64 randomGet64(u8* buf, size_t len); +u64 randomGet64(void); diff --git a/nx/source/kernel/random.c b/nx/source/kernel/random.c index 9390b12e..5ba17a96 100644 --- a/nx/source/kernel/random.c +++ b/nx/source/kernel/random.c @@ -151,7 +151,7 @@ void randomGet(u8* buf, size_t len) mutexUnlock(&g_randMutex); } -u64 randomGet64(u8* buf, size_t len) +u64 randomGet64(void) { u64 tmp; randomGet((u8*) &tmp, sizeof(tmp));