On 05/20/16 14:31, Ed Schouten wrote:
2016-05-20 21:10 GMT+02:00 Pedro F. Giffuni <[email protected]>:
        /* 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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to