Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159967032
D42816.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
443 B
Referenced Files
None
Subscribers
None
D42816.id.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
@@ -87,6 +87,15 @@
return (val);
}
+static inline uint64_t
+get_random_u64(void)
+{
+ uint64_t val;
+
+ get_random_bytes(&val, sizeof(val));
+ return (val);
+}
+
static __inline uint32_t
prandom_u32(void)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 21, 1:19 AM (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34134903
Default Alt Text
D42816.id.diff (443 B)
Attached To
Mode
D42816: LinuxKPI: Add get_random_u64() function
Attached
Detach File
Event Timeline
Log In to Comment