Page MenuHomeFreeBSD

D24961.diff
No OneTemporary

D24961.diff

Index: head/sys/compat/linuxkpi/common/include/linux/random.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/random.h
+++ head/sys/compat/linuxkpi/common/include/linux/random.h
@@ -62,4 +62,10 @@
return (val);
}
+static inline u32
+prandom_u32_max(u32 max)
+{
+ return (arc4random_uniform(max));
+}
+
#endif /* _LINUX_RANDOM_H_ */

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 1, 8:12 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16390021
Default Alt Text
D24961.diff (408 B)

Event Timeline