MagickCore 7.0.10
random_.h
Go to the documentation of this file.
1/*
2 Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Wizard's Toolkit random number methods.
17*/
18#ifndef _WIZARDSTOOLKIT_RANDOM_H
19#define _WIZARDSTOOLKIT_RANDOM_H
20
21#include "wizard/hmac.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27/*
28 Typedef declarations.
29*/
30typedef struct _RandomInfo
32
33/*
34 Method declarations.
35*/
36extern WizardExport double
39
43
45 *GetRandomKey(RandomInfo *,const size_t);
46
47extern WizardExport unsigned long
49
50extern WizardExport void
52 SetRandomKey(RandomInfo *,const size_t,unsigned char *),
53 SetRandomSecretKey(const unsigned long),
55
58
59#if defined(__cplusplus) || defined(c_plusplus)
60}
61#endif
62
63#endif
HashType
Definition hash.h:28
#define WizardExport
WizardExport unsigned long GetRandomSecretKey(const RandomInfo *)
Definition random.c:853
WizardExport RandomInfo * DestroyRandomInfo(RandomInfo *)
Definition random.c:289
WizardExport StringInfo * GetRandomKey(RandomInfo *, const size_t)
Definition random.c:820
WizardExport double GetRandomValue(RandomInfo *)
Definition random.c:878
WizardExport void SetRandomKey(RandomInfo *, const size_t, unsigned char *)
WizardExport void SetRandomSecretKey(const unsigned long)
WizardExport WizardBooleanType RandomComponentGenesis(void)
Definition random.c:910
WizardExport void SetRandomTrueRandom(const WizardBooleanType)
Definition random.c:1174
WizardExport void RandomComponentTerminus(void)
WizardExport RandomInfo * AcquireRandomInfo(const HashType)
WizardExport double GetPseudoRandomValue(RandomInfo *)
WizardBooleanType
Definition wizard-type.h:26