summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseRngLib/Rand/RdRand.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseRngLib/Rand/RdRand.c')
-rw-r--r--MdePkg/Library/BaseRngLib/Rand/RdRand.c11
1 files changed, 5 insertions, 6 deletions
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);