Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109103667
D24961.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
408 B
Referenced Files
None
Subscribers
None
D24961.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D24961: linuxkpi: Add prandom_u32_max
Attached
Detach File
Event Timeline
Log In to Comment