Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Return 32bit UUID, based on the current time and pid.

@return: 32bit int uuid
@rtype: int

        def uuid32():
    '''
    Return 32bit UUID, based on the current time and pid.

    @return: 32bit int uuid
    @rtype: int
    '''
    return fnv1(struct.pack('QQ',
                            int(time.time() * 1000),
                            os.getpid()))
        


src/p/y/pyroute2-0.2.8/pyroute2/iocore/iocore.py   pyroute2(Download)
 
from multiprocessing import Process
from pyroute2.common import uuid32
from pyroute2.common import debug
from pyroute2.netlink import NLMSG_CONTROL
    def __init__(self, debug=False, timeout=3, do_connect=False,
                 host=None, key=None, cert=None, ca=None,
                 addr=None, fork=False, secret=None):
        addr = addr or uuid32()
        self._timeout = timeout

src/p/y/pyroute2-HEAD/pyroute2/iocore/iocore.py   pyroute2(Download)
 
from multiprocessing import Process
from pyroute2.common import uuid32
from pyroute2.common import debug
from pyroute2.netlink import NLMSG_CONTROL
    def __init__(self, debug=False, timeout=3, do_connect=False,
                 host=None, key=None, cert=None, ca=None,
                 addr=None, fork=False, secret=None):
        addr = addr or uuid32()
        self._timeout = timeout