Fix implicit conversion warning

We can cast since arc4random_uniform anyway accepts only u_int32_t