public static long secureRandomLong(){
  SecureRandom sr=getSecureRandom();
synchronized (sr) {
    return sr.nextLong();
  }
}

public static long secureRandomLong ( ) { SecureRandom sr = getSecureRandom ( ) ; synchronized ( sr ) { return sr . nextLong ( ) ; } }
get a cryptographically secure pseudo random long value .
