我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用uuid._random_getnode()。
def test_random_getnode(self): node = uuid._random_getnode() # Least significant bit of first octet must be set. self.assertTrue(node & 0x010000000000) self.assertTrue(node < (1 << 48))
def test_random_getnode(self): node = uuid._random_getnode() # Least significant bit of first octet must be set. self.assertTrue(node & 0x010000000000, '%012x' % node) self.check_node(node)
def test_random_getnode(self): node = uuid._random_getnode() # Least significant bit of first octet must be set. self.assertTrue(node & 0x010000000000) self.assertTrue(node < (1L << 48))