diff options
author | Tom Herbert <therbert@google.com> | 2013-01-22 09:49:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-23 13:44:00 -0500 |
commit | 055dc21a1d1d219608cd4baac7d0683fb2cbbe8a (patch) | |
tree | 23e66bde4668a92585f62d15c759c53fd4d0892f /include/linux | |
parent | 4a633a602c26497b8285a202830829d3be007c7b (diff) |
soreuseport: infrastructure
Definitions and macros for implementing soreusport.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/random.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/random.h b/include/linux/random.h index d9846088c2c..347ce553a30 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -74,4 +74,10 @@ static inline int arch_get_random_int(unsigned int *v) } #endif +/* Pseudo random number generator from numerical recipes. */ +static inline u32 next_pseudo_random32(u32 seed) +{ + return seed * 1664525 + 1013904223; +} + #endif /* _LINUX_RANDOM_H */ |