MCPcopy Create free account
hub / github.com/OSGeo/gdal / myrand_r

Function myrand_r

autotest/cpp/testblockcache.cpp:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89#define MYRAND_MAX 32767
90
91static int myrand_r(unsigned long *pseed)
92{
93 *pseed = *pseed * 1103515245 + 12345;
94 return ((unsigned)((*pseed / 65536UL) % (MYRAND_MAX + 1)));
95}
96
97static void Check(GByte *pBuffer, int nXSize, int nYSize, int nBands, int nXOff,
98 int nYOff, int nXWin, int nYWin)

Callers 3

CheckFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected