Renamed auth and added random byte function there