summaryrefslogtreecommitdiff
path: root/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c')
-rw-r--r--SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
index 98ef3b357f..32c46ab45f 100644
--- a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
+++ b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
@@ -15,6 +15,7 @@
- EFI_RNG_ALGORITHM_X9_31_AES_GUID - Unsupported
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -156,7 +157,7 @@ RngGetRNG (
if (RNGValueLength < 32) {
return EFI_INVALID_PARAMETER;
}
-
+
Status = RdRandGenerateEntropy (RNGValueLength, RNGValue);
return Status;
}
@@ -197,14 +198,6 @@ RngDriverEntry (
EFI_HANDLE Handle;
//
- // Verify RdRand support on Platform.
- //
- Status = IsRdRandSupported ();
- if (EFI_ERROR (Status)) {
- return Status;
- }
-
- //
// Install UEFI RNG (Random Number Generator) Protocol
//
Handle = NULL;
@@ -214,6 +207,6 @@ RngDriverEntry (
&mRngRdRand,
NULL
);
-
+
return Status;
}