Project

General

Profile

Feature #767 ยป 0018-randseed.c-Replace-NULLs-with-nullptrs.patch

Marko Lindqvist, 07/29/2024 08:36 PM

View differences:

utility/randseed.c
#ifdef HAVE_BCRYPTGENRANDOM
NTSTATUS Status;
Status = BCryptGenRandom(NULL, (PUCHAR)ret, sizeof(randseed),
Status = BCryptGenRandom(nullptr, (PUCHAR)ret, sizeof(randseed),
BCRYPT_USE_SYSTEM_PREFERRED_RNG);
if (NT_SUCCESS(Status)) {
......
static bool generate_seed_time(randseed *ret)
{
/* No reasonable way this can fail */
*ret = (randseed) time(NULL);
*ret = (randseed) time(nullptr);
return TRUE;
}
    (1-1/1)