diff options
| author | Chao Li <lichao@loongson.cn> | 2026-01-09 04:42:10 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-01-13 08:31:57 +0300 |
| commit | 6696ff97b5bfb3ae2fbb5656f5f7e292b4785809 (patch) | |
| tree | e5d6c6162f5507af1854010bee67f4753470dfad /MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h | |
| parent | f25d437f265f4f29b82665964bc9d286b6ae6146 (diff) | |
| download | edk2-6696ff97b5bfb3ae2fbb5656f5f7e292b4785809.tar.xz | |
MdePkg: Add LoongArch64 instance in BaseRngLib
LoongArch64 currently dose not support HW or a standards-compliant RNG.
Read the stable time twice performs an XOR, and then use xorshift
algorithm(from Marsaglia's xorshift generator) to generate a
pseudo-random number.
It's not random enough, but it's definitely better than just using a
timer(BaseRngLibTimerLib).
Signed-off-by: Chao Li <lichao@loongson.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h')
0 files changed, 0 insertions, 0 deletions
