Add max seed to replace sys.maxint which is inconsistent.