Ericsson / libpaf

Pathfinder service discovery client library
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Move from /dev/urandom to getentropy() #4

Closed m-ronnblom closed 3 years ago

m-ronnblom commented 3 years ago

Move from reading /dev/urandom to calling getentropy() as a source for random numbers.

getentropy() is available since glibc 2.25 (released in 2017) and kernel 3.17 (released in 2014).