remove extra define for __NR_getrandom and add some comments

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19985)
This commit is contained in:
zhangzhilei 2023-01-03 19:12:35 +08:00 committed by Hugo Landau
parent a2a09af086
commit c8a9b26d6e

View File

@ -319,9 +319,7 @@ static ssize_t sysctl_random(char *buf, size_t buflen)
# define __NR_getrandom 352
# elif defined(__cris__)
# define __NR_getrandom 356
# elif defined(__aarch64__)
# define __NR_getrandom 278
# else /* generic */
# else /* generic (f.e. aarch64, loongarch, loongarch64) */
# define __NR_getrandom 278
# endif
# endif