Fixed random seed bug.