Initialize the random number generator with a 'random' seed. */
| 153 | |
| 154 | /** Initialize the random number generator with a 'random' seed. */ |
| 155 | void Micropolis::randomlySeedRandom() |
| 156 | { |
| 157 | #ifdef _WIN32 |
| 158 | seedRandom(::GetTickCount()); |
| 159 | #else |
| 160 | struct timeval time; |
| 161 | gettimeofday(&time, NULL); |
| 162 | seedRandom(time.tv_usec ^ time.tv_sec); |
| 163 | #endif |
| 164 | } |
| 165 | |
| 166 | |
| 167 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected