]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 20 May 2015 11:38:51 +0000 (11:38 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 20 May 2015 11:38:51 +0000 (11:38 +0000)
MagickCore/random-private.h
MagickCore/random.c

index 720ac1287822ead00dd7c74299bfd49045b4aba4..2c101e8a7fdfa7ec760c0ab2d80dc41f991b387f 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
 #endif
 
 extern MagickPrivate double
-  GetRandomInfoNormalize(RandomInfo *);
+  GetRandomInfoNormalize(const RandomInfo *);
 
 extern MagickPrivate MagickBooleanType
   RandomComponentGenesis(void);
index fd09e357f4d4eeac17baf54cea84538daba34f09..c976e31e8df789dbb490147cdb7b03846ceb89c7 100644 (file)
@@ -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);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
++   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);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
 %   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;
-}