Use arc4random() in tests if available.