Java AtomicLong getNativeSeed(Random rand)

Here you can find the source of getNativeSeed(Random rand)

Description

get Native Seed

License

Open Source License

Declaration

private static long getNativeSeed(Random rand) 

Method Source Code

//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*/
}

Related

  1. getList(AtomicLongArray atomicLongArray)
  2. getMessageId()
  3. getMethodExecuteCount()
  4. getMeUniqueString(Calendar cal)
  5. getMmapBufferUsage()
  6. getNextTestIndexName()
  7. getNowMicrosUtc()
  8. getRAMUniqueID()
  9. getRandomTopicName()