Fix signature of randomGet64()

This commit is contained in:
plutoo 2018-01-18 20:53:04 +01:00
parent ec4430d2e6
commit 15fe53dad3
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2018 plutoo // Copyright 2018 plutoo
void randomGet(u8* buf, size_t len); void randomGet(u8* buf, size_t len);
u64 randomGet64(u8* buf, size_t len); u64 randomGet64(void);

View File

@ -151,7 +151,7 @@ void randomGet(u8* buf, size_t len)
mutexUnlock(&g_randMutex); mutexUnlock(&g_randMutex);
} }
u64 randomGet64(u8* buf, size_t len) u64 randomGet64(void)
{ {
u64 tmp; u64 tmp;
randomGet((u8*) &tmp, sizeof(tmp)); randomGet((u8*) &tmp, sizeof(tmp));