Fix secure random egd to avoid slow tests on Linux
Merge branch 'fix-egd'