Here you can find the source of getNativeSeed(Random rand)
private static long getNativeSeed(Random rand)
//package com.java2s; import java.util.Random; import java.util.concurrent.atomic.AtomicLong; import sun.misc.Unsafe; public class Main { private static Unsafe unsafe; private static long seedFieldOffset; private static long getNativeSeed(Random rand) { AtomicLong al = (AtomicLong) unsafe .getObject(rand, seedFieldOffset); return al.longValue(); }/* w ww . j a v a 2 s . co m*/ }