All: I'm trying to find another solution to this and port this server to FreeBSD. So far the only thing holding me up is that they want RAND_MAX to be a power of 2, and I don't want to just change things without knowing what I'm changing. Is there a reason for this? The code is here: https://pastebin.com/yeha7C8Y Thanks,