]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/prandom.h
Disable pristine-tar option in gbp.conf, since there is no pristine-tar branch.
[bcachefs-tools-debian] / include / linux / prandom.h
index 6f177cddda399cf03916de4034eeadfe7f4b683f..9aea22dc92e745c71e3cc4d686c8a169498c555f 100644 (file)
@@ -23,5 +23,11 @@ prandom_type(u32);
 prandom_type(u64);
 #undef prandom_type
 
+static inline u32 prandom_u32_max(u32 max)
+{
+       return prandom_u32() % max;
+
+}
+
 #endif /* _LINUX_PRANDOM_H */