Re: [PATCH] randomize_range: use random long instead of int

2016-07-25 Thread Jason Cooper
Hi William, Kees, On Mon, Jul 25, 2016 at 11:25:41AM -0700, william.c.robe...@intel.com wrote: > From: William Roberts > > Use a long when generating the random range rather than > an int. This will produce better random distributions as > well as matching all the

Re: [PATCH] randomize_range: use random long instead of int

2016-07-25 Thread Jason Cooper
Hi William, Kees, On Mon, Jul 25, 2016 at 11:25:41AM -0700, william.c.robe...@intel.com wrote: > From: William Roberts > > Use a long when generating the random range rather than > an int. This will produce better random distributions as > well as matching all the types at hand. > >

Re: [PATCH] randomize_range: use random long instead of int

2016-07-25 Thread Kees Cook
On Mon, Jul 25, 2016 at 11:25 AM, wrote: > From: William Roberts > > Use a long when generating the random range rather than > an int. This will produce better random distributions as > well as matching all the types at hand. > >

Re: [PATCH] randomize_range: use random long instead of int

2016-07-25 Thread Kees Cook
On Mon, Jul 25, 2016 at 11:25 AM, wrote: > From: William Roberts > > Use a long when generating the random range rather than > an int. This will produce better random distributions as > well as matching all the types at hand. > > Signed-off-by: William Roberts I agree, this is what I pointed

[PATCH] randomize_range: use random long instead of int

2016-07-25 Thread william . c . roberts
From: William Roberts Use a long when generating the random range rather than an int. This will produce better random distributions as well as matching all the types at hand. Signed-off-by: William Roberts --- drivers/char/random.c | 3

[PATCH] randomize_range: use random long instead of int

2016-07-25 Thread william . c . roberts
From: William Roberts Use a long when generating the random range rather than an int. This will produce better random distributions as well as matching all the types at hand. Signed-off-by: William Roberts --- drivers/char/random.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff