Searched refs:urandom (Results 1 – 11 of 11) sorted by relevance
/device/google/crosshatch/fuzzy_fastboot/ |
D | test.sh | 23 head -c $RADIO_SIZE </dev/urandom>radio_garbage.img 24 head -c $BOOTLOADER_SIZE </dev/urandom>bootloader_garbage.img
|
/device/google/contexthub/util/nanoapp_encr/ |
D | nanoapp_encr.c | 29 static FILE* urandom = NULL; variable 33 if (urandom) in cleanup() 34 fclose(urandom); in cleanup() 39 if (!urandom) { in rand_bytes() 40 urandom = fopen("/dev/urandom", "rb"); in rand_bytes() 41 if (!urandom) { in rand_bytes() 50 if (len != fread(dst, 1, len, urandom)) { in rand_bytes()
|
/device/google/contexthub/util/nanoapp_sign/ |
D | nanoapp_sign.c | 28 static FILE* urandom = NULL; variable 89 if (!urandom) { in rand32_no_zero_bytes() 90 urandom = fopen("/dev/urandom", "rb"); in rand32_no_zero_bytes() 91 if (!urandom) { in rand32_no_zero_bytes() 99 if (!fread(&byte, 1, 1, urandom)) { in rand32_no_zero_bytes() 113 if (urandom) in cleanup() 114 fclose(urandom); in cleanup()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_os.py | 517 self.assertEqual(len(os.urandom(1)), 1) 518 self.assertEqual(len(os.urandom(10)), 10) 519 self.assertEqual(len(os.urandom(100)), 100) 520 self.assertEqual(len(os.urandom(1000)), 1000) 522 self.assertRaises(TypeError, os.urandom, 0.9) 523 self.assertRaises(TypeError, os.urandom, 1.1) 524 self.assertRaises(TypeError, os.urandom, 2.0)
|
D | test_multiprocessing.py | 1266 authkey = os.urandom(32) 1304 authkey = os.urandom(32)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | uuid.py | 543 return UUID(bytes=os.urandom(16), version=4)
|
D | os.py | 743 def urandom(n): function
|
D | random.py | 47 from os import urandom as _urandom
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/iobench/ |
D | iobench.py | 371 f.write(os.urandom(size))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/ |
D | os.py | 757 def urandom(n): function
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | random.py | 47 from os import urandom as _urandom
|