diff options
Diffstat (limited to 'dmagick/c/random.d')
| -rw-r--r-- | dmagick/c/random.d | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dmagick/c/random.d b/dmagick/c/random.d new file mode 100644 index 0000000..4af5ffd --- /dev/null +++ b/dmagick/c/random.d @@ -0,0 +1,24 @@ +module dmagick.c.random; + +import dmagick.c.magickString; +import dmagick.c.magickType; + +extern(C) +{ + struct RandomInfo {} + + double GetRandomValue(RandomInfo*); + double GetPseudoRandomValue(RandomInfo*); + + MagickBooleanType RandomComponentGenesis(); + + RandomInfo* AcquireRandomInfo(); + RandomInfo* DestroyRandomInfo(RandomInfo*); + + StringInfo* GetRandomKey(RandomInfo*, const size_t); + + void RandomComponentTerminus(); + void SeedPseudoRandomGenerator(const size_t); + void SetRandomKey(RandomInfo*, const size_t, ubyte*); + void SetRandomTrueRandom(const MagickBooleanType); +} |
