Home
last modified time | relevance | path

Searched refs:urandom (Results 1 – 11 of 11) sorted by relevance

/device/google/crosshatch/fuzzy_fastboot/
Dtest.sh23 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/
Dnanoapp_encr.c29 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/
Dnanoapp_sign.c28 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/
Dtest_os.py517 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)
Dtest_multiprocessing.py1266 authkey = os.urandom(32)
1304 authkey = os.urandom(32)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Duuid.py543 return UUID(bytes=os.urandom(16), version=4)
Dos.py743 def urandom(n): function
Drandom.py47 from os import urandom as _urandom
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/iobench/
Diobench.py371 f.write(os.urandom(size))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/
Dos.py757 def urandom(n): function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Drandom.py47 from os import urandom as _urandom