| 33 | #endif |
| 34 | |
| 35 | byte LC_RNG::GetByte() |
| 36 | { |
| 37 | word32 hi = seed/q; |
| 38 | word32 lo = seed%q; |
| 39 | |
| 40 | long test = a*lo - r*hi; |
| 41 | |
| 42 | if (test > 0) |
| 43 | seed = test; |
| 44 | else |
| 45 | seed = test+ m; |
| 46 | |
| 47 | return (seedBytes[0] ^ seedBytes[1] ^ seedBytes[2] ^ seedBytes[3]); |
| 48 | } |
| 49 | |
| 50 | // ******************************************************** |
| 51 |
nothing calls this directly
no test coverage detected