Added genBytes to random