/usr/include/GraphicsMagick/magick/random.h is in libgraphicsmagick1-dev 1.3.28-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /*
Copyright (C) 2009, 2014 GraphicsMagick Group
This program is covered by multiple licenses, which are described in
Copyright.txt. You should have received a copy of Copyright.txt with this
package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
Random number generator (semi-public interfaces).
Currently based on George Marsaglia's multiply-with-carry generator.
This is a k=2 generator with a period >2^60.
*/
#ifndef _MAGICK_RANDOM_H
#define _MAGICK_RANDOM_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif /* defined(__cplusplus) || defined(c_plusplus) */
typedef struct _MagickRandomKernel
{
magick_uint32_t z;
magick_uint32_t w;
} MagickRandomKernel;
#define MAGICK_RANDOM_MAX 4294967295
/*
Generate a random integer value (0 - MAGICK_RANDOM_MAX)
*/
MagickExport magick_uint32_t MagickRandomInteger(void);
/*
Generate a random double value (0.0 - 1.0)
*/
MagickExport double MagickRandomReal(void);
#if defined(MAGICK_IMPLEMENTATION)
/*
Initialize the random kernel with suitable entropy
*/
MagickExport void InitializeMagickRandomKernel(MagickRandomKernel *kernel);
/*
Acquire the default random number kernel. Memory is owned by
library and should not be freed.
*/
MagickExport MagickRandomKernel* AcquireMagickRandomKernel();
/*
Initialize the random number generator system.
*/
extern void InitializeMagickRandomGenerator();
/*
Destroy the random number generator system.
*/
extern void DestroyMagickRandomGenerator();
#endif /* defined(MAGICK_IMPLEMENTATION) */
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif /* defined(__cplusplus) || defined(c_plusplus) */
#endif /* ifndef _MAGICK_RANDOM_H */
/*
* Local Variables:
* mode: c
* c-basic-offset: 2
* fill-column: 78
* End:
*/
|