Added asserts in methods using arc4random.