Here you can find the source of parseSeed(String seedString)
public static long parseSeed(String seedString)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.ThreadLocalRandom; public class Main { public static long parseSeed(String seedString) { if (seedString == null || seedString.length() == 0) return ThreadLocalRandom.current().nextLong(); try {/*from w ww . j a v a 2s .co m*/ long j = Long.parseLong(seedString); if (j == 0L) throw new IllegalArgumentException( "Zero (0) isn't a valid seed."); return j; } catch (NumberFormatException numberformatexception) { return seedString.hashCode(); } } }