From: zhangzhilei Date: Tue, 3 Jan 2023 11:12:35 +0000 (+0800) Subject: remove extra define for __NR_getrandom and add some comments X-Git-Tag: openssl-3.2.0-alpha1~1549 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8a9b26d6ed7a62d26a013c21e62ba4a0a2d6dd1;p=thirdparty%2Fopenssl.git remove extra define for __NR_getrandom and add some comments Reviewed-by: Tomas Mraz Reviewed-by: Kurt Roeckx Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/19985) --- diff --git a/providers/implementations/rands/seeding/rand_unix.c b/providers/implementations/rands/seeding/rand_unix.c index fa7ad6cfeb1..2aae396f239 100644 --- a/providers/implementations/rands/seeding/rand_unix.c +++ b/providers/implementations/rands/seeding/rand_unix.c @@ -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