Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:11:44

0001 /*
0002   Copyright @ 2001 ImageMagick Studio LLC, a non-profit organization
0003   dedicated to making software imaging solutions freely available.
0004   
0005   You may not use this file except in compliance with the License.  You may
0006   obtain a copy of the License at
0007   
0008     https://imagemagick.org/script/license.php
0009   
0010   Unless required by applicable law or agreed to in writing, software
0011   distributed under the License is distributed on an "AS IS" BASIS,
0012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013   See the License for the specific language governing permissions and
0014   limitations under the License.
0015 
0016   MagickCore random methods.
0017 */
0018 #ifndef MAGICKCORE_RANDOM__H
0019 #define MAGICKCORE_RANDOM__H
0020 
0021 #include "MagickCore/string_.h"
0022 
0023 #if defined(__cplusplus) || defined(c_plusplus)
0024 extern "C" {
0025 #endif
0026 
0027 /*
0028   Typedef declarations.
0029 */
0030 typedef struct _RandomInfo
0031   RandomInfo;
0032 
0033 /*
0034   Method declarations.
0035 */
0036 extern MagickExport double
0037   GetRandomValue(RandomInfo *),
0038   GetPseudoRandomValue(RandomInfo *magick_restrict);
0039 
0040 extern MagickExport RandomInfo
0041   *AcquireRandomInfo(void),
0042   *DestroyRandomInfo(RandomInfo *);
0043 
0044 extern MagickExport StringInfo
0045   *GetRandomKey(RandomInfo *,const size_t);
0046 
0047 extern MagickExport unsigned long
0048   GetRandomSecretKey(const RandomInfo *);
0049 
0050 extern MagickExport void
0051   SetRandomKey(RandomInfo *,const size_t,unsigned char *),
0052   SetRandomSecretKey(const unsigned long),
0053   SetRandomTrueRandom(const MagickBooleanType);
0054 
0055 #if defined(__cplusplus) || defined(c_plusplus)
0056 }
0057 #endif
0058 
0059 #endif