TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmRng.h File Reference

Go to the source code of this file.

Functions

BOOLEAN EFIAPI ArmRndr (OUT UINT64 *Rand)
 

Detailed Description

Random number generator service that uses the RNDR instruction to provide pseudorandom numbers.

Copyright (c) 2021, NUVIA Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ArmRng.h.

Function Documentation

◆ ArmRndr()

BOOLEAN EFIAPI ArmRndr ( OUT UINT64 *  Rand)

Generates a random number using RNDR. Returns TRUE on success; FALSE on failure.

Parameters
[out]RandBuffer pointer to store the 64-bit random value.
Return values
TRUERandom number generated successfully.
FALSEFailed to generate the random number.