Searched refs:devrandom (Results 1 – 2 of 2) sorted by relevance
57 static int devrandom = -1; in sip_get_random() local59 if (devrandom == -1 && in sip_get_random()60 (devrandom = open("/dev/urandom", O_RDONLY)) == -1) { in sip_get_random()64 if (read(devrandom, buf, buflen) == -1) in sip_get_random()
974 static int devrandom = -1; in getrandom() local976 if (devrandom == -1 && in getrandom()977 (devrandom = open("/dev/urandom", O_RDONLY)) == -1) { in getrandom()983 if (read(devrandom, buf, buflen) == -1) { in getrandom()