Handle negative inputs to crypto_random_time_range().
commit280672bdbc2c694ebe17f9972657d118e84be723
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Sep 2015 14:22:01 +0000 (8 10:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Sep 2015 14:22:01 +0000 (8 10:22 -0400)
tree07e9d8b4620bf1c74602b0c780c29ec816004945
parent81e3deeb54d2f3d022655c6a51f966ef44bf6fb3
Handle negative inputs to crypto_random_time_range().

(These inputs are possible when Shadow starts the world at time_t 0,
and breaks our assumption that Tor didn't exist in the 1970s.)

Fixes regression introduced in 241e6b09. Fixes #16980.
changes/bug16980 [new file with mode: 0644]
src/common/crypto.c