Wouldn't it be better, to replace arc4random() with random() ? This seems to be the only dependency to libbsd.