diff options
| author | Adriano Cordova <adriano.cordova@canonical.com> | 2025-04-22 22:09:37 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-09-02 11:28:30 +0300 |
| commit | 2efffed93811a7c5d0e6d7d19f8ff112128ffd6a (patch) | |
| tree | 00ad5a89cbb236f988264b482e5a4f120d624392 /MdeModulePkg/Library/BaseMemoryAllocationLibNull | |
| parent | 77293f47116764abc7734bcef7dba69a9b83b696 (diff) | |
| download | edk2-2efffed93811a7c5d0e6d7d19f8ff112128ffd6a.tar.xz | |
MdePkg/Library/BaseRngLib/Riscv: use CPU RNG instructions only
Generate random number using risc-v CPU RNG instructions only,
as for the other architectures. This is safer than using Mersenne
Twister from a seed, which is the current implementation, as the
latter is known to be cryptographically unsafe (e.g. see
https://www.schutzwerk.com/en/blog/attacking-a-rng/)
Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
Diffstat (limited to 'MdeModulePkg/Library/BaseMemoryAllocationLibNull')
0 files changed, 0 insertions, 0 deletions
