On 4/28/21 7:08 PM, gaoliming wrote:
Rebecca:
   Can you submit one BZ for this new feature?

Create https://bugzilla.tianocore.org/show_bug.cgi?id=3368

+/**
+  Generates a random number using the RNDRRS instruction.
+
+  @param[out]  The generated random number
+
+  @retval TRUE  Success: a random number was successfully generated
+  @retval FALSE Failure: a random number was unable to be generated
+
+**/
+BOOLEAN
+EFIAPI
+ArmRndrrs (
+  OUT UINT64 *Rand
+  );
+

What usage is for this API ArmRndrrs()? I don't see it is used in RngLib.

It's not used at the moment, but it uses the RNDRRS instruction, which re-seeds the PRNG immediately before generating a random number.

--
Rebecca Cran


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#74780): https://edk2.groups.io/g/devel/message/74780
Mute This Topic: https://groups.io/mt/82445564/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to