Page MenuHomeFreeBSD

D46464.diff
No OneTemporary

D46464.diff

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

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)

Event Timeline