Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 6696ff97b5bfb3ae2fbb5656f5f7e292b4785809
      
https://github.com/tianocore/edk2/commit/6696ff97b5bfb3ae2fbb5656f5f7e292b4785809
  Author: Chao Li <[email protected]>
  Date:   2026-01-13 (Tue, 13 Jan 2026)

  Changed paths:
    M MdePkg/Library/BaseRngLib/BaseRngLib.inf
    A MdePkg/Library/BaseRngLib/LoongArch64/AsmRdRng.S
    A MdePkg/Library/BaseRngLib/LoongArch64/Rng.c

  Log Message:
  -----------
  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 <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>


  Commit: 1588d5b9f0112a448ff76e80a872e35c1628176e
      
https://github.com/tianocore/edk2/commit/1588d5b9f0112a448ff76e80a872e35c1628176e
  Author: Chao Li <[email protected]>
  Date:   2026-01-13 (Tue, 13 Jan 2026)

  Changed paths:
    M MdePkg/MdePkg.dsc

  Log Message:
  -----------
  MdePkg: Enable BaseRngLib for LoongArch64

The BaseRngLib has been supported LoongArch64, enable it in MdePkg.dsc
now.

Signed-off-by: Chao Li <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/f25d437f265f...1588d5b9f011

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to