Home GnuPG

random: Fix previous commit for getentropy function.

Description

random: Fix previous commit for getentropy function.

* random/rndlinux.c [__NR_getrandom] (_gcry_rndlinux_gather_random):
Check return value only for use of syscall.

The function returns 0 on success.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jan 15 2019, 7:48 AM
Parents
rC2677d7d482bf: random: Use getentropy when available for not GNU/Linux.
Branches
Unknown
Tags
Unknown