mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 11:35:08 -05:00
On some systems (e.g. Solaris/OpenIndiana) rand() and random() have different ranges. RAND_MAX is the maximum value returned by rand(), but random() should always have a range of 0 through 2^31-1. This fixes multiple failures in different tests.
3.6 KiB
3.6 KiB