diff options
Diffstat (limited to '01-remove_prandom.patch')
-rw-r--r-- | 01-remove_prandom.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/01-remove_prandom.patch b/01-remove_prandom.patch new file mode 100644 index 000000000000..b30d165d9000 --- /dev/null +++ b/01-remove_prandom.patch @@ -0,0 +1,13 @@ +--- a/blackmagic-io-12.4.1a15/bm_util.c 2023-01-01 13:26:47.100202432 +0100 ++++ b/blackmagic-io-12.4.1a15/bm_util.c 2023-01-01 13:09:53.705229108 +0100 +@@ -902,7 +902,9 @@ + // Random + uint32_t bm_random32(void) + { +-#if KERNEL_VERSION_OR_LATER(3, 8, 0) ++#if KERNEL_VERSION_OR_LATER(6, 1, 0) ++ return get_random_u32(); ++#elif KERNEL_VERSION_OR_LATER(3, 8, 0) + return prandom_u32(); + #elif KERNEL_VERSION_OR_LATER(2, 6, 19) + return random32();
\ No newline at end of file |