| 49 | |
| 50 | |
| 51 | int dTestRand() |
| 52 | { |
| 53 | unsigned long oldseed = seed; |
| 54 | int ret = 1; |
| 55 | seed = 0; |
| 56 | if (dRand() != 0x3c6ef35f || dRand() != 0x47502932 || |
| 57 | dRand() != 0xd1ccf6e9 || dRand() != 0xaaf95334 || |
| 58 | dRand() != 0x6252e503) ret = 0; |
| 59 | seed = oldseed; |
| 60 | return ret; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | int dRandInt (int n) |