]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
remove extra define for __NR_getrandom and add some comments
authorzhangzhilei <zhangzhilei@360.cn>
Tue, 3 Jan 2023 11:12:35 +0000 (19:12 +0800)
committerHugo Landau <hlandau@openssl.org>
Fri, 6 Jan 2023 06:41:13 +0000 (06:41 +0000)
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)

providers/implementations/rands/seeding/rand_unix.c

index fa7ad6cfeb1ad511a05fbffd574acf6c9e2e6592..2aae396f2392ca3a299bc96578c4abb83edb0ad0 100644 (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