Repository navigation
Commit dd1f723
committed
ext4: use prandom_u32() instead of get_random_bytes()
Many of the uses of get_random_bytes() do not actually need
cryptographically secure random numbers. Replace those uses with a
call to prandom_u32(), which is faster and which doesn't consume
entropy from the /dev/random driver.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>1 parent f275411 commit dd1f723
3 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3068 | 3068 | | |
3069 | 3069 | | |
3070 | 3070 | | |
3071 | | - | |
3072 | 3071 | | |
3073 | 3072 | | |
3074 | 3073 | | |
| |||
3083 | 3082 | | |
3084 | 3083 | | |
3085 | 3084 | | |
3086 | | - | |
3087 | | - | |
3088 | | - | |
3089 | | - | |
| 3085 | + | |
| 3086 | + | |
3090 | 3087 | | |
3091 | 3088 | | |
3092 | 3089 | | |
| |||
0 commit comments