summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorChao Li <lichao@loongson.cn>2026-01-09 04:42:10 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-01-13 08:31:57 +0300
commit6696ff97b5bfb3ae2fbb5656f5f7e292b4785809 (patch)
treee5d6c6162f5507af1854010bee67f4753470dfad /MdeModulePkg/Library/PiDxeS3BootScriptLib
parentf25d437f265f4f29b82665964bc9d286b6ae6146 (diff)
downloadedk2-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')
0 files changed, 0 insertions, 0 deletions