[Bug 271284] prng32 generators unable to be used

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 09 May 2023 21:18:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271284

--- Comment #2 from Alex Bylund <notbylundzander@gmail.com> ---
I'm not sure what the actual design is supposed to be, but on a new install of
13.1 with ZFS (suspect) this change was needed

diff --git a/sys/sys/module.h b/sys/sys/module.h
index efefaf4cb513..a3cd8aa8756a 100644
--- a/sys/sys/module.h
+++ b/sys/sys/module.h
@@ -254,7 +254,7 @@ extern int mod_debug;
 #endif /* _KERNEL */

 #define        MAXMODNAMEV1V2  32
-#define        MAXMODNAMEV3    MAXPATHLEN
+#define        MAXMODNAMEV3    32
 #define        MAXMODNAME      MAXMODNAMEV3

 struct module_stat {

I'm unable to see with my 13.2 install - I'm unsure if I broke it with updating
it wrong or something else.

And if anybody is wondering, filling a 64 byte array with pcg32() is about the
same speed as using arc4random_buf.

-- 
You are receiving this mail because:
You are the assignee for the bug.