def _reseed_random():
    if 'random' not in sys.modules:
        return
    import random
    # If os.urandom is available, this method does the same thing as
    # random.seed (at least as of python 2.6).  If os.urandom is not
    # available, we mix in the pid in addition to a timestamp.
    try:
        seed = long(hexlify(os.urandom(16)), 16)
    except __HOLE__:
        seed = int(time.time() * 1000) ^ os.getpid()
    random.seed(seed)
dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/process.py/_reseed_random