Home GnuPG

random: Call getrandom before select and emitting a progress callback.
623aab8a940eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

random: Call getrandom before select and emitting a progress callback.

* random/rndlinux.c (_gcry_rndlinux_gather_random): Move the getrandom
call before the select.

A select for getrandom does not make any sense because there is no
file descriptor for getrandom. Thus if getrandom is available we now
select only when we want to read from the blocking /dev/random. In
most cases this avoids all progress callbacks.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 18 2017, 10:24 AM
Parents
rCddcfe31e2425: mpi: amd64: fix too large jump alignment in mpih-rshift
Branches
Unknown
Tags
Unknown

Event Timeline