MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / simple_rand_i

Function simple_rand_i

deps/GraphBLAS/Demo/Source/simple_rand.c:52–61  ·  view source on GitHub ↗

return a random uint64_t

Source from the content-addressed store, hash-verified

50
51// return a random uint64_t
52GB_PUBLIC
53uint64_t simple_rand_i ( )
54{
55 uint64_t i = 0 ;
56 for (int k = 0 ; k < 5 ; k++)
57 {
58 i = SIMPLE_RAND_MAX * i + simple_rand ( ) ;
59 }
60 return (i) ;
61}
62
63// return a random double between 0 and 1, inclusive
64GB_PUBLIC

Callers 3

simple_rand_xFunction · 0.70
random_matrixFunction · 0.70
mainFunction · 0.50

Calls 1

simple_randFunction · 0.70

Tested by

no test coverage detected