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>
This commit is contained in:
Tom Herbert 2013-01-22 09:49:50 +00:00 committed by David S. Miller
parent 4a633a602c
commit 055dc21a1d
18 changed files with 32 additions and 18 deletions

View file

@ -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 */