From b62b9d1f33a4911feb9f318ece0c1565f27abf8d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 2 Apr 2021 16:17:50 +0200 Subject: Replaced target macros --- libs/libc/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/libc/random.c') diff --git a/libs/libc/random.c b/libs/libc/random.c index 2801029..5cbbbb6 100644 --- a/libs/libc/random.c +++ b/libs/libc/random.c @@ -14,7 +14,7 @@ void srand(u32 seed) u32 rdrand(void) { -#ifdef kernel +#ifdef KERNEL if (!cpu_has_cfeature(CPUID_FEAT_ECX_RDRND)) return rand(); @@ -31,7 +31,7 @@ u32 rdrand(void) u32 rdseed(void) { -#ifdef kernel +#ifdef KERNEL if (!cpu_has_cfeature(CPUID_FEAT_ECX_RDRND)) return rand(); -- cgit v1.2.3