From 72d29a138d7259a0f4034be834a5855bbd500889 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 1 May 2024 05:14:44 +0300 Subject: [PATCH] Fix RDSEEDFlag assignment --- core/random.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/random.cpp b/core/random.cpp index e31df9d..9c7abe8 100644 --- a/core/random.cpp +++ b/core/random.cpp @@ -30,16 +30,16 @@ namespace Random if (strcmp(CPU::Vendor(), x86_CPUID_VENDOR_AMD) == 0) { CPU::x86::AMD::CPUID0x00000007_ECX_0 cpuid; - RDRANDFlag = cpuid.EBX.RDSEED; + RDSEEDFlag = cpuid.EBX.RDSEED; } else if (strcmp(CPU::Vendor(), x86_CPUID_VENDOR_INTEL) == 0) { CPU::x86::Intel::CPUID0x00000007_0 cpuid; - RDRANDFlag = cpuid.EBX.RDSEED; + RDSEEDFlag = cpuid.EBX.RDSEED; } } else - RDRANDFlag = false; + RDSEEDFlag = false; if (strcmp(CPU::Hypervisor(), x86_CPUID_VENDOR_TCG) != 0) { @@ -55,7 +55,10 @@ namespace Random } } else - RDRANDFlag = 0; + RDRANDFlag = false; + + if (RDSEEDFlag) + fixme("RDSEED is not implemented yet!"); } uint16_t rand16()