#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);
}
/*
%
% A description of each parameter follows:
%
-% o key: the secret seed.
+% o key: the secret key.
%
*/
MagickExport void SetRandomSecretKey(const unsigned long key)