]> git.draconx.ca Git - cdecl99.git/commit
tests: Limit automatic random seed to 8 digits.
authorNick Bowler <nbowler@draconx.ca>
Sat, 27 Jan 2024 01:52:25 +0000 (20:52 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 27 Jan 2024 01:52:25 +0000 (20:52 -0500)
commite3a2c5e9b1e130433a201b7ecd1dd78bdbe8ca2e
tree8cd372e98c4962d73a33200af5bbbccde79fd234
parentbf336dc52970daa394d119b11284a1b5016a74c0
tests: Limit automatic random seed to 8 digits.

In the event that the test_strtoumax can only convert 32-bit types for
whatever reason, attempting to pass values >= 2**32 spits an error.

We don't need this kind of excess range for the automatic random seed.
Just truncate it to 8 digits which will always fit in 32 bits.
testsuite.at