Feature #767 ยป 0018-randseed.c-Replace-NULLs-with-nullptrs.patch
| 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;
|
||
|
}
|
||