API Reference for Enthought Tool Suite 3.2.0
hexip = ''.join([ %s for i in ip.split('.') ])
ip = ''
lastguid = ''
lock = threading.RLock()
MAX_RANDOM = sys.maxint
queue = CircularSet()
The size of the circular queue. Larger sizes give more assurance for uniqueness. Smaller sizes take less memory and are a tiny bit faster
QUEUE_SIZE = 100
rand = random.Random()
Extracts the ip portion out of the guid and returns it as a string like 10.10.10.10
Extracts the random bits from the guid (returns the bits in decimal)
Extracts the time portion out of the guid and returns the number of seconds since the epoch as a float
Generates a new guid
| Local name | Refers to |
|---|---|
| random | random |
| socket | socket |
| sys | sys |
| threading | threading |
| time | time |
© Copyright 2002-2009 Enthought, Inc.