Home
last modified time | relevance | path

Searched refs:keyused (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_randommodule.c215 unsigned long keyused; /* # of used slots in key */ in random_seed() local
260 keyused = 0; in random_seed()
290 if (keyused >= keymax) { in random_seed()
302 assert(keyused < keymax); in random_seed()
303 key[keyused++] = chunk; in random_seed()
306 if (keyused == 0) in random_seed()
307 key[keyused++] = 0UL; in random_seed()
308 result = init_by_array(self, key, keyused); in random_seed()
/external/python/cpython3/Modules/
D_randommodule.c240 size_t bits, keyused; in random_seed() local
282 keyused = bits == 0 ? 1 : (bits - 1) / 32 + 1; in random_seed()
285 key = (uint32_t *)PyMem_Malloc((size_t)4 * keyused); in random_seed()
291 (unsigned char *)key, keyused * 4, in random_seed()
302 for (i = 0, j = keyused - 1; i < j; i++, j--) { in random_seed()
309 init_by_array(self, key, keyused); in random_seed()