summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authorzhangzhilei <zhangzhilei@360.cn>2023-01-03 19:12:35 +0800
committerHugo Landau <hlandau@openssl.org>2023-01-06 06:41:13 +0000
commitc8a9b26d6ed7a62d26a013c21e62ba4a0a2d6dd1 (patch)
tree44a152e13dd60650f58a4b3e827d6452ea8b4ac8 /providers
parenta2a09af086e97da35225ec952f2ae75c833b19e7 (diff)
downloadopenssl-new-c8a9b26d6ed7a62d26a013c21e62ba4a0a2d6dd1.tar.gz
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)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/rands/seeding/rand_unix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/providers/implementations/rands/seeding/rand_unix.c b/providers/implementations/rands/seeding/rand_unix.c
index fa7ad6cfeb..2aae396f23 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