Home GnuPG

random: Use getrandom only when it's appropriate.

Description

random: Use getrandom only when it's appropriate.

* random/rndgetentropy.c (_gcry_rndgetentropy_gather_random)
[GRND_RANDOM]: Conditionalize the use of getrandom, as it's
not a portable function.

Cherry-picked master commit of:
fa21ddc158b5d7b5900856e5b131071302217a51

Details

Provenance
gniibeAuthored on Apr 10 2023, 4:45 AM
Parents
rC08f133c527eb: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T6442: libgcrypt-1.10.2: getrandom() is not available everywhere