aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/random.c')
-rw-r--r--libs/libc/random.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/libc/random.c b/libs/libc/random.c
index 5cbbbb6..6e65959 100644
--- a/libs/libc/random.c
+++ b/libs/libc/random.c
@@ -1,10 +1,13 @@
// MIT License, Copyright (c) 2020 Marvin Borner
-#include <cpu.h>
#include <def.h>
#include <mem.h>
#include <random.h>
+#ifdef KERNEL
+#include <cpu.h>
+#endif
+
static u32 g_seed = 1;
void srand(u32 seed)