svn commit: r300322 - head/bin/ed

Ed Schouten ed at nuxi.nl
Fri May 20 19:31:08 UTC 2016


2016-05-20 21:10 GMT+02:00 Pedro F. Giffuni <pfg at 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?

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the svn-src-head mailing list