summaryrefslogtreecommitdiffstats
path: root/include/linux/random.h
diff options
context:
space:
mode:
authorTom Herbert2013-01-22 10:49:50 +0100
committerDavid S. Miller2013-01-23 19:44:00 +0100
commit055dc21a1d1d219608cd4baac7d0683fb2cbbe8a (patch)
tree23e66bde4668a92585f62d15c759c53fd4d0892f /include/linux/random.h
parentxen-netback: allow changing the MAC address of the interface (diff)
downloadkernel-qcow2-linux-055dc21a1d1d219608cd4baac7d0683fb2cbbe8a.tar.gz
kernel-qcow2-linux-055dc21a1d1d219608cd4baac7d0683fb2cbbe8a.tar.xz
kernel-qcow2-linux-055dc21a1d1d219608cd4baac7d0683fb2cbbe8a.zip
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/random.h')
-rw-r--r--include/linux/random.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/random.h b/include/linux/random.h
index d9846088c2c5..347ce553a306 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 */