From 15fe53dad39d0133d0b60049fe3b2f11c82c8da3 Mon Sep 17 00:00:00 2001 From: plutoo Date: Thu, 18 Jan 2018 20:53:04 +0100 Subject: [PATCH] Fix signature of randomGet64() --- nx/include/switch/kernel/random.h | 2 +- nx/source/kernel/random.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));