Remove unnecessary cast from random byte assignment.