/system/extras/tests/pagingtest/ |
pagingtest.c | 25 int urandom; local 33 urandom = open("/dev/urandom", O_RDONLY); 34 if (urandom < 0) { 35 fprintf(stderr, "unable to open urandom: %s\n", strerror(errno)); 58 rc = read(urandom, tmp_buf, tmp_size); 86 close(urandom); 94 close(urandom);
|
/device/google/contexthub/util/nanoapp_encr/ |
nanoapp_encr.c | 29 static FILE* urandom = NULL; variable 33 if (urandom) 34 fclose(urandom); 39 if (!urandom) { 40 urandom = fopen("/dev/urandom", "rb"); 41 if (!urandom) { 42 fprintf(stderr, "Failed to open /dev/urandom. Cannot procceed!\n"); 50 if (len != fread(dst, 1, len, urandom)) { 51 fprintf(stderr, "Failed to read /dev/urandom. Cannot procceed!\n") [all...] |
/device/google/contexthub/util/nanoapp_sign/ |
nanoapp_sign.c | 28 static FILE* urandom = NULL; variable 89 if (!urandom) { 90 urandom = fopen("/dev/urandom", "rb"); 91 if (!urandom) { 92 fprintf(stderr, "Failed to open /dev/urandom. Cannot procceed!\n"); 99 if (!fread(&byte, 1, 1, urandom)) { 100 fprintf(stderr, "Failed to read /dev/urandom. Cannot procceed!\n"); 113 if (urandom) 114 fclose(urandom); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/ |
os.py | 756 if not _exists("urandom"):
757 def urandom(n):
function in function:_pickle_statvfs_result 758 """urandom(n) -> str
764 _urandomfd = open("/dev/urandom", O_RDONLY)
766 raise NotImplementedError("/dev/urandom (or equivalent) not found")
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
os.py | 742 if not _exists("urandom"):
743 def urandom(n):
function in function:_pickle_statvfs_result 744 """urandom(n) -> str
750 _urandomfd = open("/dev/urandom", O_RDONLY)
752 raise NotImplementedError("/dev/urandom (or equivalent) not found")
|
/external/eigen/unsupported/test/mpreal/ |
mpreal.h | 425 friend const mpreal urandom (gmp_randstate_t& state, mp_rnd_t rnd_mode); // use gmp_randinit_default() to init state, gmp_randclear() to clear
436 // Check urandom() for more precise control.
2593 inline const mpreal urandom (gmp_randstate_t& state, mp_rnd_t rnd_mode = mpreal::get_default_rnd()) function in namespace:mpfr [all...] |