X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FLibrary%2FBaseCryptLib%2FRand%2FCryptRandTsc.c;h=30454bf10f9ba633e4d53cca94315e89ac51d71c;hp=b0bfd5fb4f96253cdb28a441429d1f15d00ba395;hb=7c342378317039e632d9a1a5d4cf7c21aec8cb7a;hpb=2b16a4fb91b9b31c0d152588f5ac51080c6c0763 diff --git a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c b/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c index b0bfd5fb4f..30454bf10f 100644 --- a/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c +++ b/CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c @@ -53,7 +53,7 @@ RandomSeed ( // NOTE: A cryptographic PRNG must be seeded with unpredictable data. // if (Seed != NULL) { - RAND_seed (Seed, (UINT32) SeedSize); + RAND_seed (Seed, (UINT32)SeedSize); } else { // // Retrieve current time. @@ -97,14 +97,14 @@ RandomBytes ( // // Check input parameters. // - if (Output == NULL || Size > INT_MAX) { + if ((Output == NULL) || (Size > INT_MAX)) { return FALSE; } // // Generate random data. // - if (RAND_bytes (Output, (UINT32) Size) != 1) { + if (RAND_bytes (Output, (UINT32)Size) != 1) { return FALSE; }