Fixed overflow issue for the random seed base