random: Fix previous commit for getentropy function.

Authored by gniibe on Jan 15 2019, 7:48 AM.

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

Committed
gniibeJan 15 2019, 7:48 AM
Parents
rC2677d7d482bf: random: Use getentropy when available for not GNU/Linux.
Branches
Unknown
Tags
Unknown