Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102775041
D46464.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
441 B
Referenced Files
None
Subscribers
None
D46464.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/random.h b/sys/compat/linuxkpi/common/include/linux/random.h
--- a/sys/compat/linuxkpi/common/include/linux/random.h
+++ b/sys/compat/linuxkpi/common/include/linux/random.h
@@ -54,6 +54,15 @@
return (val);
}
+static inline uint8_t
+get_random_u8(void)
+{
+ uint8_t val;
+
+ get_random_bytes(&val, sizeof(val));
+ return (val);
+}
+
#define get_random_u32() get_random_int()
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 12:22 AM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11218113
Default Alt Text
D46464.diff (441 B)
Attached To
Mode
D46464: LinuxKPI: add get_random_u8()
Attached
Detach File
Event Timeline
Log In to Comment