Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-31 Thread Akinobu Mita
2012/10/31 Theodore Ts'o : > On Tue, Oct 30, 2012 at 08:12:39PM +0900, Akinobu Mita wrote: >> >> >> >> How about prandom32_get_bytes_state() and prandom32_get_bytes() instead? >> > >> > I agree with your suggestion. I'll rename them and try again. >> > >> > By the way, should we also rename the

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-31 Thread Akinobu Mita
2012/10/31 Theodore Ts'o ty...@mit.edu: On Tue, Oct 30, 2012 at 08:12:39PM +0900, Akinobu Mita wrote: How about prandom32_get_bytes_state() and prandom32_get_bytes() instead? I agree with your suggestion. I'll rename them and try again. By the way, should we also rename the existing

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Theodore Ts'o
On Tue, Oct 30, 2012 at 08:12:39PM +0900, Akinobu Mita wrote: > >> > >> How about prandom32_get_bytes_state() and prandom32_get_bytes() instead? > > > > I agree with your suggestion. I'll rename them and try again. > > > > By the way, should we also rename the existing random32() and > >

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Akinobu Mita
2012/10/30 Akinobu Mita : > 2012/10/30 Theodore Ts'o : >> On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote: >>> /** >>> + * prandom32_get_bytes - get the requested number of pseudo-random bytes >>> + * @state: pointer to state structure holding seeded state. >>> + * @buf: where

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Akinobu Mita
2012/10/30 Theodore Ts'o : > On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote: >> /** >> + * prandom32_get_bytes - get the requested number of pseudo-random bytes >> + * @state: pointer to state structure holding seeded state. >> + * @buf: where to copy the pseudo-random bytes

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Akinobu Mita
2012/10/30 Theodore Ts'o ty...@mit.edu: On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote: /** + * prandom32_get_bytes - get the requested number of pseudo-random bytes + * @state: pointer to state structure holding seeded state. + * @buf: where to copy the pseudo-random

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Akinobu Mita
2012/10/30 Akinobu Mita akinobu.m...@gmail.com: 2012/10/30 Theodore Ts'o ty...@mit.edu: On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote: /** + * prandom32_get_bytes - get the requested number of pseudo-random bytes + * @state: pointer to state structure holding seeded state.

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-30 Thread Theodore Ts'o
On Tue, Oct 30, 2012 at 08:12:39PM +0900, Akinobu Mita wrote: How about prandom32_get_bytes_state() and prandom32_get_bytes() instead? I agree with your suggestion. I'll rename them and try again. By the way, should we also rename the existing random32() and prandom32() in the

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-29 Thread Theodore Ts'o
On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote: > /** > + * prandom32_get_bytes - get the requested number of pseudo-random bytes > + * @state: pointer to state structure holding seeded state. > + * @buf: where to copy the pseudo-random bytes to > + * @bytes: the requested

Re: [PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-29 Thread Theodore Ts'o
On Sun, Oct 28, 2012 at 04:18:58PM +0900, Akinobu Mita wrote: /** + * prandom32_get_bytes - get the requested number of pseudo-random bytes + * @state: pointer to state structure holding seeded state. + * @buf: where to copy the pseudo-random bytes to + * @bytes: the requested number

[PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
Add functions to get the requested number of pseudo-random bytes. The difference from get_random_bytes() is that it uses pseudo-random numbers generated by random32. It is fast, suitable for generating random bytes for testing, and reproducible if prandom32 interface is used. Signed-off-by:

[PATCH 1/9] random32: introduce random32_get_bytes() and prandom32_get_bytes()

2012-10-28 Thread Akinobu Mita
Add functions to get the requested number of pseudo-random bytes. The difference from get_random_bytes() is that it uses pseudo-random numbers generated by random32. It is fast, suitable for generating random bytes for testing, and reproducible if prandom32 interface is used. Signed-off-by: