From: cristy Date: Wed, 20 May 2015 11:38:51 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1019 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6062eadcd2c1fd3186a66c5cb744a83129c6bb72;p=imagemagick --- diff --git a/MagickCore/random-private.h b/MagickCore/random-private.h index 720ac1287..2c101e8a7 100644 --- a/MagickCore/random-private.h +++ b/MagickCore/random-private.h @@ -25,7 +25,7 @@ extern "C" { #endif extern MagickPrivate double - GetRandomInfoNormalize(RandomInfo *); + GetRandomInfoNormalize(const RandomInfo *); extern MagickPrivate MagickBooleanType RandomComponentGenesis(void); diff --git a/MagickCore/random.c b/MagickCore/random.c index fd09e357f..c976e31e8 100644 --- a/MagickCore/random.c +++ b/MagickCore/random.c @@ -624,6 +624,62 @@ MagickExport double GetPseudoRandomValue(RandomInfo *random_info) % % % % % % ++ G e t R a n d o m I n f o N o r m a l i z e % +% % +% % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% GetRandomInfoNormalize() returns the random normalize value. +% +% The format of the GetRandomInfoNormalize method is: +% +% double GetRandomInfoNormalize(const RandomInfo *random_info) +% +% A description of each parameter follows: +% +% o random_info: the random info. +% +*/ +MagickPrivate double GetRandomInfoNormalize(const RandomInfo *random_info) +{ + assert(random_info != (const RandomInfo *) NULL); + return(random_info->normalize); +} + +/* +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% % +% % ++ G e t R a n d o m I n f o S e e d % +% % +% % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% GetRandomInfoSeed() returns the random seed. +% +% The format of the GetRandomInfoSeed method is: +% +% unsigned long *GetRandomInfoSeed(RandomInfo *random_info) +% +% A description of each parameter follows: +% +% o random_info: the random info. +% +*/ +MagickPrivate unsigned long *GetRandomInfoSeed(RandomInfo *random_info) +{ + assert(random_info != (RandomInfo *) NULL); + return(random_info->seed); +} + +/* +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% % +% % % G e t R a n d o m K e y % % % % % @@ -921,15 +977,3 @@ MagickExport void SetRandomTrueRandom(const MagickBooleanType true_random) { gather_true_random=true_random; } - -MagickPrivate unsigned long *GetRandomInfoSeed(RandomInfo *random_info) -{ - assert(random_info != (RandomInfo *) NULL); - return random_info->seed; -} - -MagickPrivate double GetRandomInfoNormalize(RandomInfo *random_info) -{ - assert(random_info != (RandomInfo *) NULL); - return random_info->normalize; -}