Prefer to use /dev/urandom rather than arcrandom(). I have doubts on real randomness of arc4random() in case of fork().