diff options
| author | Mike Wey | 2011-01-08 17:48:30 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-01-08 17:48:30 +0100 |
| commit | cbac78bbec726017355cb455a776f193e7fc3022 (patch) | |
| tree | a41c564c7ef5aec9dd2b18e58e94b213193044be /dmagick/c/random.d | |
initial checkin
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); +} |
