diff options
author | Akinobu Mita <[email protected]> | 2012-12-17 16:04:25 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-12-17 17:15:26 -0800 |
commit | 6582c665d6b882dad8329e05749fbcf119f1ab88 (patch) | |
tree | c40cbd6ed26fb1fea9d63d9244e6ce377d8196fd /net/lapb/lapb_iface.c | |
parent | 496f2f93b1cc286f5a4f4f9acdc1e5314978683f (diff) |
prandom: introduce prandom_bytes() and prandom_bytes_state()
Add functions to get the requested number of pseudo-random bytes.
The difference from get_random_bytes() is that it generates pseudo-random
numbers by prandom_u32(). It doesn't consume the entropy pool, and the
sequence is reproducible if the same rnd_state is used. So it is suitable
for generating random bytes for testing.
Signed-off-by: Akinobu Mita <[email protected]>
Cc: "Theodore Ts'o" <[email protected]>
Cc: Artem Bityutskiy <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Eilon Greenstein <[email protected]>
Cc: David Laight <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Robert Love <[email protected]>
Cc: Valdis Kletnieks <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions