Fix div by zero possibility in byte randomization