Return a pseudo-random unsigned integer */
| 163 | |
| 164 | /* Return a pseudo-random unsigned integer */ |
| 165 | unsigned 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. |
no outgoing calls
no test coverage detected