code: def get_rng(obj=None):
      
      seed = (id(obj) + os.getpid() +
              int(datetime.now().strftime("%Y%m%d%H%M%S%f"))) % 4294967295
      if _RNG_SEED is not None:
          seed = _RNG_SEED
      return np.random.RandomState(seed)
docs: Get a good RNG seeded with time, pid and the object.
  
      Args:
          obj: some object to use to generate random seed.
      Returns:
          np.random.RandomState: the RNG.