/* Get a GUID identifying the RNG algorithm implementation. */
EFI_STATUS EFIAPI GetRngGuid(GUID *RngGuid)
/* Get a GUID identifying the RNG algorithm implementation. */
EFI_STATUS EFIAPI GetRngGuid(GUID *RngGuid)
{
  GUID  *RngLibGuid;
  if (RngGuid == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  if (!mRndrSupported) {
    return EFI_UNSUPPORTED;
  }
  RngLibGuid = PcdGetPtr (PcdCpuRngSupportedAlgorithm);
  if (!IsZeroGuid (RngLibGuid)) {
    CopyMem (RngGuid, RngLibGuid, sizeof (*RngGuid));
  } else {
    CopyMem (RngGuid, &gEfiRngAlgorithmArmRndr, sizeof (*RngGuid));
  }
  return EFI_SUCCESS;
}