MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / speedtest1_random

Function speedtest1_random

test/sqlite/speedtest1.c:165–169  ·  view source on GitHub ↗

Return a pseudo-random unsigned integer */

Source from the content-addressed store, hash-verified

163
164/* Return a pseudo-random unsigned integer */
165unsigned int speedtest1_random(void){
166 g.x = (g.x>>1) ^ ((1+~(g.x&1)) & 0xd0000001);
167 g.y = g.y*1103515245 + 12345;
168 return g.x ^ g.y;
169}
170
171/* Map the value in within the range of 1...limit into another
172** number in a way that is chatic and invertable.

Callers 3

randomFunc1Function · 0.85
testset_mainFunction · 0.85
twoCoordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected