diff options
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index d93dfebae0bb..1822472dffab 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -1798,13 +1798,15 @@ int random_int_secret_init(void) | |||
1798 | return 0; | 1798 | return 0; |
1799 | } | 1799 | } |
1800 | 1800 | ||
1801 | static DEFINE_PER_CPU(__u32 [MD5_DIGEST_WORDS], get_random_int_hash) | ||
1802 | __aligned(sizeof(unsigned long)); | ||
1803 | |||
1801 | /* | 1804 | /* |
1802 | * Get a random word for internal kernel use only. Similar to urandom but | 1805 | * Get a random word for internal kernel use only. Similar to urandom but |
1803 | * with the goal of minimal entropy pool depletion. As a result, the random | 1806 | * with the goal of minimal entropy pool depletion. As a result, the random |
1804 | * value is not cryptographically secure but for several uses the cost of | 1807 | * value is not cryptographically secure but for several uses the cost of |
1805 | * depleting entropy is too high | 1808 | * depleting entropy is too high |
1806 | */ | 1809 | */ |
1807 | static DEFINE_PER_CPU(__u32 [MD5_DIGEST_WORDS], get_random_int_hash); | ||
1808 | unsigned int get_random_int(void) | 1810 | unsigned int get_random_int(void) |
1809 | { | 1811 | { |
1810 | __u32 *hash; | 1812 | __u32 *hash; |