Files
tor/changes
Nick Mathewson 5afab5ca19 Check maximum properly in crypto_rand_int()
George Kadianakis notes that if you give crypto_rand_int() a value
above INT_MAX, it can return a negative number, which is not what
the documentation would imply.

The simple solution is to assert that the input is in [1,INT_MAX+1].
If in the future we need a random-value function that can return
values up to UINT_MAX, we can add one.

Fixes bug 3306; bugfix on 0.2.2pre14.
2011-06-06 16:18:06 -04:00
..
2011-05-21 16:08:21 -04:00
2011-06-02 15:11:21 -04:00
2011-05-12 18:49:28 -04:00
2011-05-15 22:02:24 -04:00
2011-05-31 20:43:55 -04:00
2011-05-20 08:25:43 -07:00