[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NetBSD noticed arc4random() tested, arc4random_buf() used.
From: |
Ralph Corderoy |
Subject: |
NetBSD noticed arc4random() tested, arc4random_buf() used. |
Date: |
Sat, 12 Apr 2025 18:31:27 +0100 |
Hi,
There's a configure.ac v. sbr/m_rand.c mismatch:
arc4random() v. arc4random_buf().
$ G g arc4random
configure.ac:AC_CHECK_FUNCS([wcwidth mbtowc getutxent arc4random mkstemps])
sbr/m_rand.c:#include <stdlib.h> /* for abs(), srand(), rand(),
arc4random() */
sbr/m_rand.c: arc4random_buf(buf, n);
$
It apparently causes problems on some platforms.
Spotted because I was browsing
https://github.com/drecklypkg/dreckly/blob/trunk/mail/nmh/Makefile#L77
--
Cheers, Ralph.
- NetBSD noticed arc4random() tested, arc4random_buf() used.,
Ralph Corderoy <=