Date: Fri, 20 May 2016 21:31:07 +0200 From: Ed Schouten <ed@nuxi.nl> To: "Pedro F. Giffuni" <pfg@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r300322 - head/bin/ed Message-ID: <CABh_MKmzzUD3M%2BwB_5A194QP5Q5LcVG6yJ=wFDrRo4Swf7uMHQ@mail.gmail.com> In-Reply-To: <201605201910.u4KJAT13015624@repo.freebsd.org> References: <201605201910.u4KJAT13015624@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
2016-05-20 21:10 GMT+02:00 Pedro F. Giffuni <pfg@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@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKmzzUD3M%2BwB_5A194QP5Q5LcVG6yJ=wFDrRo4Swf7uMHQ>