18#define DEFAULT_DELAY_TIME_IN_MICROSECONDS 10
39 ASSERT (CounterHz != 0);
40 return DEFAULT_DELAY_TIME_IN_MICROSECONDS;
68 UINT32 DelayInMicroSeconds;
77 RandPtr = (UINT8 *)
Rand;
79 for (Index = 0; Index <
sizeof (UINT16); Index++) {
108 UINT32 DelayInMicroSeconds;
116 RandPtr = (UINT8 *)
Rand;
119 for (Index = 0; Index <
sizeof (UINT32); Index++) {
148 UINT32 DelayInMicroSeconds;
156 RandPtr = (UINT8 *)
Rand;
159 for (Index = 0; Index <
sizeof (UINT64); Index++) {
214 if (RngGuid ==
NULL) {
215 return EFI_INVALID_PARAMETER;
218 CopyMem (RngGuid, &gEdkiiRngAlgorithmUnSafe,
sizeof (*RngGuid));
UINT64 EFIAPI GetPerformanceCounterProperties(OUT UINT64 *StartValue OPTIONAL, OUT UINT64 *EndValue OPTIONAL)
UINT64 EFIAPI GetPerformanceCounter(VOID)
UINTN EFIAPI MicroSecondDelay(IN UINTN MicroSeconds)
UINT64 EFIAPI DivU64x64Remainder(IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
STATIC UINT32 CalculateMinimumDecentDelayInMicroseconds(VOID)
BOOLEAN EFIAPI GetRandomNumber16(OUT UINT16 *Rand)
EFI_STATUS EFIAPI GetRngGuid(GUID *RngGuid)
BOOLEAN EFIAPI GetRandomNumber32(OUT UINT32 *Rand)
BOOLEAN EFIAPI GetRandomNumber128(OUT UINT64 *Rand)
BOOLEAN EFIAPI GetRandomNumber64(OUT UINT64 *Rand)