X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseRngLib%2FRand%2FRdRand.c;h=070d41e2555f9e7eba028b13e90d6cbb90503fe8;hp=09fb875ac3f95185c4bdb8a1ae563677830e8177;hb=2f88bd3a1296c522317f1c21377876de63de5be7;hpb=1436aea4d5707e672672a11bda72be2c63c936c3 diff --git a/MdePkg/Library/BaseRngLib/Rand/RdRand.c b/MdePkg/Library/BaseRngLib/Rand/RdRand.c index 09fb875ac3..070d41e255 100644 --- a/MdePkg/Library/BaseRngLib/Rand/RdRand.c +++ b/MdePkg/Library/BaseRngLib/Rand/RdRand.c @@ -18,10 +18,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent // // Bit mask used to determine if RdRand instruction is supported. // -#define RDRAND_MASK BIT30 +#define RDRAND_MASK BIT30 - -STATIC BOOLEAN mRdRandSupported; +STATIC BOOLEAN mRdRandSupported; /** The constructor function checks whether or not RDRAND instruction is supported @@ -66,7 +65,7 @@ BaseRngLibConstructor ( BOOLEAN EFIAPI ArchGetRandomNumber16 ( - OUT UINT16 *Rand + OUT UINT16 *Rand ) { return AsmRdRand16 (Rand); @@ -84,7 +83,7 @@ ArchGetRandomNumber16 ( BOOLEAN EFIAPI ArchGetRandomNumber32 ( - OUT UINT32 *Rand + OUT UINT32 *Rand ) { return AsmRdRand32 (Rand); @@ -102,7 +101,7 @@ ArchGetRandomNumber32 ( BOOLEAN EFIAPI ArchGetRandomNumber64 ( - OUT UINT64 *Rand + OUT UINT64 *Rand ) { return AsmRdRand64 (Rand);