Thierry Crozat eff98b0c56 COMMON: Fix undefined behaviour in RandomSource constructor
The 'time.tm_year * 86400 * 366' line caused the result to overflow
what can be stored in an int; and signed int overflow is undefined
behaviour. The result goes into an unsigned int anyway, so now
all the intermediate computations are also done with unsigned int.
It still overflows (not on this line, but on the next one), but
that is fine as the standard guarantees that unsigned int overflow
wraps around.
2022-10-31 21:46:22 +00:00
..
2022-10-27 15:56:04 +02:00
2022-09-18 20:43:33 +02:00
2021-12-26 21:19:38 +01:00
2022-07-11 18:16:23 +02:00
2022-05-28 12:32:29 +02:00
2021-12-26 21:19:38 +01:00
2021-12-26 21:19:38 +01:00
2022-10-27 15:56:05 +02:00
2022-07-11 18:16:23 +02:00
2022-07-11 18:16:23 +02:00
2022-05-28 12:32:29 +02:00
2022-10-23 22:46:19 +02:00
2022-10-23 22:46:19 +02:00
2022-10-30 18:37:16 +01:00
2022-08-06 11:30:43 +02:00
2022-09-18 20:37:36 +02:00
2022-05-28 12:32:29 +02:00