NetBSD noticed arc4random() tested, arc4random_buf() used.
Ralph Corderoy <[email protected]> Sat, 12 Apr 2025 18:31:27 +0100
| Newsgroups | gmane.mail.nmh.devel |
|---|---|
| Message-ID | <[email protected]> |
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.