On 05/20/16 14:31, Ed Schouten wrote:
2016-05-20 21:10 GMT+02:00 Pedro F. Giffuni <p...@freebsd.org>:
        /* initialize the padding vector */
        for (i = 0; i < 8; i++)
-               pvec[i] = (char) (arc4random() % 256);
+               pvec[i] = (char)arc4random_uniform(256);

This could be simplified to just calling arc4random_buf() on pvec, right?


Hmm ... Yes.

FWIW, ed(1) needs a bunch of cleanups. OpenBSD removed the DES code altogether.

Pedro.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to