| 148 | } |
| 149 | |
| 150 | float Random_Float(RNGState* seed) { |
| 151 | int raw; |
| 152 | |
| 153 | *seed = (*seed * RND_VALUE + 0xBLL) & RND_MASK; |
| 154 | raw = (int)(*seed >> (48 - 24)); |
| 155 | return raw / ((float)(1 << 24)); |
| 156 | } |
| 157 | |
| 158 | |
| 159 | /*########################################################################################################################* |
no outgoing calls
no test coverage detected