From 2af5da8374e95324d9f408b5e45c0a638277629b Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 8 Jul 2019 10:27:00 -0400 Subject: [PATCH] ... --- MagickCore/random.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MagickCore/random.c b/MagickCore/random.c index a4d13cedb..a8f308114 100644 --- a/MagickCore/random.c +++ b/MagickCore/random.c @@ -479,22 +479,22 @@ static StringInfo *GenerateEntropicChaos(RandomInfo *random_info) #if defined(MAGICKCORE_WINDOWS_SUPPORT) { double - datum; + seconds; LARGE_INTEGER - datum1; + nanoseconds; /* Not crytographically strong but better than nothing. */ - datum=NTElapsedTime()+NTUserTime(); - SetStringInfoLength(chaos,sizeof(datum)); - SetStringInfoDatum(chaos,(unsigned char *) &datum); + seconds=NTElapsedTime()+NTUserTime(); + SetStringInfoLength(chaos,sizeof(seconds)); + SetStringInfoDatum(chaos,(unsigned char *) &seconds); ConcatenateStringInfo(entropy,chaos); - if (QueryPerformanceCounter(&datum1) != 0) + if (QueryPerformanceCounter(&nanoseconds) != 0) { - SetStringInfoLength(chaos,sizeof(datum1)); - SetStringInfoDatum(chaos,(unsigned char *) &datum1); + SetStringInfoLength(chaos,sizeof(nanoseconds)); + SetStringInfoDatum(chaos,(unsigned char *) &nanoseconds); ConcatenateStringInfo(entropy,chaos); } /* @@ -948,7 +948,7 @@ MagickExport void SetRandomKey(RandomInfo *random_info,const size_t length, % % A description of each parameter follows: % -% o key: the secret seed. +% o key: the secret key. % */ MagickExport void SetRandomSecretKey(const unsigned long key) -- 2.40.0