From: Cristy Date: Mon, 15 Apr 2019 13:46:21 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-41~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0ba05d90e62f712a3b5777dafdef9513fdf6b4a;p=imagemagick ... --- diff --git a/MagickCore/timer.c b/MagickCore/timer.c index b3d0b545e..ca2d16bb0 100644 --- a/MagickCore/timer.c +++ b/MagickCore/timer.c @@ -342,7 +342,7 @@ MagickExport double GetElapsedTime(TimerInfo *time_info) % % % % % % -% G e t M a g i c k T i m e % ++ G e t M a g i c k T i m e % % % % % % % diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c index 0b75f36be..fe46d1d43 100644 --- a/MagickWand/mogrify.c +++ b/MagickWand/mogrify.c @@ -7484,7 +7484,7 @@ WandExport MagickBooleanType MogrifyImageInfo(ImageInfo *image_info, if (*option == '+') { - seed=(unsigned long) GetMagickTime(); + seed=(unsigned long) time((time_t *) NULL); SetRandomSecretKey(seed); break; } diff --git a/MagickWand/operation.c b/MagickWand/operation.c index e8781bc45..f53cf6dca 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -1335,7 +1335,7 @@ WandPrivate void CLISettingOptionInfo(MagickCLI *cli_wand, CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1); SetRandomSecretKey( IfSetOption ? (unsigned long) StringToUnsignedLong(arg1) - : (unsigned long) GetMagickTime() ); + : (unsigned long) time((time_t *) NULL)); break; } if (LocaleCompare("size",option+1) == 0)