aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-third__party_unrar_src_crypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-third__party_unrar_src_crypt.cpp')
-rw-r--r--devel/electron37/files/patch-third__party_unrar_src_crypt.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-third__party_unrar_src_crypt.cpp b/devel/electron37/files/patch-third__party_unrar_src_crypt.cpp
new file mode 100644
index 000000000000..3ce2532bda1f
--- /dev/null
+++ b/devel/electron37/files/patch-third__party_unrar_src_crypt.cpp
@@ -0,0 +1,11 @@
+--- third_party/unrar/src/crypt.cpp.orig 2024-08-14 20:56:02 UTC
++++ third_party/unrar/src/crypt.cpp
+@@ -116,6 +116,8 @@ void GetRnd(byte *RndBuf,size_t BufSize)
+ Success=CryptGenRandom(hProvider, (DWORD)BufSize, RndBuf) != FALSE;
+ CryptReleaseContext(hProvider, 0);
+ }
++#elif defined(__OpenBSD__)
++ arc4random_buf(RndBuf, BufSize);
+ #elif defined(_UNIX)
+ FILE *rndf = fopen("/dev/urandom", "r");
+ if (rndf!=NULL)