mirror of
https://github.com/szehl/ath9k-hmac.git
synced 2025-03-16 09:06:02 +00:00
14 lines
360 B
C
Executable File
14 lines
360 B
C
Executable File
#ifndef __BACKPORT_RANDOM_H
|
|
#define __BACKPORT_RANDOM_H
|
|
#include_next <linux/random.h>
|
|
#include <linux/version.h>
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
|
|
/* backports 496f2f9 */
|
|
#define prandom_seed(_seed) srandom32(_seed)
|
|
#define prandom_u32() random32()
|
|
#define prandom_u32_state(_state) prandom32(_state)
|
|
#endif
|
|
|
|
#endif /* __BACKPORT_RANDOM_H */
|