diff options
Diffstat (limited to 'include/linux/random.h')
-rw-r--r-- | include/linux/random.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/random.h b/include/linux/random.h index fb7ab9de5f36..079cbba39a28 100644 --- a/include/linux/random.h +++ b/include/linux/random.h | |||
@@ -102,6 +102,19 @@ static inline void prandom32_seed(struct rnd_state *state, u64 seed) | |||
102 | state->s3 = __seed(i, 15); | 102 | state->s3 = __seed(i, 15); |
103 | } | 103 | } |
104 | 104 | ||
105 | #ifdef CONFIG_ARCH_RANDOM | ||
106 | # include <asm/archrandom.h> | ||
107 | #else | ||
108 | static inline int arch_get_random_long(unsigned long *v) | ||
109 | { | ||
110 | return 0; | ||
111 | } | ||
112 | static inline int arch_get_random_int(unsigned int *v) | ||
113 | { | ||
114 | return 0; | ||
115 | } | ||
116 | #endif | ||
117 | |||
105 | #endif /* __KERNEL___ */ | 118 | #endif /* __KERNEL___ */ |
106 | 119 | ||
107 | #endif /* _LINUX_RANDOM_H */ | 120 | #endif /* _LINUX_RANDOM_H */ |