REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
		
			
				
	
	
		
			95 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			95 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   Null version of Random number generator services.
 | |
| 
 | |
| Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
 | |
| SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #include <Library/DebugLib.h>
 | |
| #include <Library/RngLib.h>
 | |
| 
 | |
| /**
 | |
|   Generates a 16-bit random number.
 | |
| 
 | |
|   if Rand is NULL, then ASSERT().
 | |
| 
 | |
|   @param[out] Rand     Buffer pointer to store the 16-bit random value.
 | |
| 
 | |
|   @retval TRUE         Random number generated successfully.
 | |
|   @retval FALSE        Failed to generate the random number.
 | |
| 
 | |
| **/
 | |
| BOOLEAN
 | |
| EFIAPI
 | |
| GetRandomNumber16 (
 | |
|   OUT     UINT16  *Rand
 | |
|   )
 | |
| {
 | |
|   ASSERT (FALSE);
 | |
|   return FALSE;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   Generates a 32-bit random number.
 | |
| 
 | |
|   if Rand is NULL, then ASSERT().
 | |
| 
 | |
|   @param[out] Rand     Buffer pointer to store the 32-bit random value.
 | |
| 
 | |
|   @retval TRUE         Random number generated successfully.
 | |
|   @retval FALSE        Failed to generate the random number.
 | |
| 
 | |
| **/
 | |
| BOOLEAN
 | |
| EFIAPI
 | |
| GetRandomNumber32 (
 | |
|   OUT     UINT32  *Rand
 | |
|   )
 | |
| {
 | |
|   ASSERT (FALSE);
 | |
|   return FALSE;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   Generates a 64-bit random number.
 | |
| 
 | |
|   if Rand is NULL, then ASSERT().
 | |
| 
 | |
|   @param[out] Rand     Buffer pointer to store the 64-bit random value.
 | |
| 
 | |
|   @retval TRUE         Random number generated successfully.
 | |
|   @retval FALSE        Failed to generate the random number.
 | |
| 
 | |
| **/
 | |
| BOOLEAN
 | |
| EFIAPI
 | |
| GetRandomNumber64 (
 | |
|   OUT     UINT64  *Rand
 | |
|   )
 | |
| {
 | |
|   ASSERT (FALSE);
 | |
|   return FALSE;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   Generates a 128-bit random number.
 | |
| 
 | |
|   if Rand is NULL, then ASSERT().
 | |
| 
 | |
|   @param[out] Rand     Buffer pointer to store the 128-bit random value.
 | |
| 
 | |
|   @retval TRUE         Random number generated successfully.
 | |
|   @retval FALSE        Failed to generate the random number.
 | |
| 
 | |
| **/
 | |
| BOOLEAN
 | |
| EFIAPI
 | |
| GetRandomNumber128 (
 | |
|   OUT     UINT64  *Rand
 | |
|   )
 | |
| {
 | |
|   ASSERT (FALSE);
 | |
|   return FALSE;
 | |
| }
 |