Commit 3aa44159c53af1d6459a85dc1841c7c494d52464

Nick Mathewson 2012-04-09T11:30:46

Tweak the new evutil_weakrand_() code Make its state actually get seeded. Document it more thoroughly. Turn its state into a structure. Fix a bug in evutil_weakrand_range_() where it could return the top of the range. Change its return type to ev_int32_t. Add a quick unit test to make sure that the value of evutil_weakrand_range_() is in range.