This file is indexed.

/usr/include/GraphicsMagick/magick/random.h is in libgraphicsmagick1-dev 1.3.12-1.1build1.

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
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
  Copyright (C) 2009 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.

  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)

  /*
    You may replace the following two constants MAGICK_RANDOM_ZC and
    MAGICK_RANDOM_WC by any pair of distinct constants from this list:

    18000 18030 18273 18513 18879 19074 19098 19164 19215 19584
    19599 19950 20088 20508 20544 20664 20814 20970 21153 21243
    21423 21723 21954 22125 22188 22293 22860 22938 22965 22974
    23109 23124 23163 23208 23508 23520 23553 23658 23865 24114
    24219 24660 24699 24864 24948 25023 25308 25443 26004 26088
    26154 26550 26679 26838 27183 27258 27753 27795 27810 27834
    27960 28320 28380 28689 28710 28794 28854 28959 28980 29013
    29379 29889 30135 30345 30459 30714 30903 30963 31059 31083

    (or any other 16-bit constants k for which both k*2^16-1 and
    k*2^15-1 are prime).
   */
#define MAGICK_RANDOM_ZC 36969
#define MAGICK_RANDOM_WC 18000

  /*
    Generate a random integer value
  */
  static inline magick_uint32_t MagickRandomIntegerInlined(MagickRandomKernel *kernel)
  {
    kernel->z = MAGICK_RANDOM_ZC * (kernel->z & 65535U) + (kernel->z >> 16U);
    kernel->w = MAGICK_RANDOM_WC * (kernel->w & 65535U) + (kernel->w >> 16U);
    return (kernel->z << 16U) + (kernel->w & 65535U);
  }

  /*
    Generate a random double value (0.0 to 1.0)
  */
  static inline double MagickRandomRealInlined(MagickRandomKernel *kernel)
  {
    return ( MagickRandomIntegerInlined(kernel) * 2.32830643708e-10);
  }

  /*
    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:
 */