Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AIX, HP-UX, and SunOS needs to use rand() rather than random()
The selftest for zhash was failing on these platforms because random() returns up to 2^31-1 and RAND_MAX is set to 2^15-1. Because of this, the random index picked in the selftest by randof() was overflowing the array. Also, ifaddrs.h does not exist on these platforms
- Loading branch information