made randState AtomicLong