Re: [PATCH] ansi_cprng: Fix off by one error in non-block size request

2013-09-23 Thread Herbert Xu
On Tue, Sep 17, 2013 at 08:33:11AM -0400, Neil Horman wrote: > Stephan Mueller reported to me recently a error in random number generation in > the ansi cprng. If several small requests are made that are less than the > instances block size, the remainder for loop code doesn't increment > rand_data

[PATCH] ansi_cprng: Fix off by one error in non-block size request

2013-09-17 Thread Neil Horman
Stephan Mueller reported to me recently a error in random number generation in the ansi cprng. If several small requests are made that are less than the instances block size, the remainder for loop code doesn't increment rand_data_valid in the last iteration, meaning that the last bytes in the rand