diff options
Diffstat (limited to 'devel/electron29/files/patch-third__party_unrar_src_crypt.cpp')
-rw-r--r-- | devel/electron29/files/patch-third__party_unrar_src_crypt.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-third__party_unrar_src_crypt.cpp b/devel/electron29/files/patch-third__party_unrar_src_crypt.cpp new file mode 100644 index 000000000000..8769300e8988 --- /dev/null +++ b/devel/electron29/files/patch-third__party_unrar_src_crypt.cpp @@ -0,0 +1,11 @@ +--- third_party/unrar/src/crypt.cpp.orig 2022-02-07 13:39:41 UTC ++++ third_party/unrar/src/crypt.cpp +@@ -120,6 +120,8 @@ void GetRnd(byte *RndBuf,size_t BufSize) + Success=CryptGenRandom(hProvider, (DWORD)BufSize, RndBuf) == TRUE; + CryptReleaseContext(hProvider, 0); + } ++#elif defined(__OpenBSD__) ++ arc4random_buf(RndBuf, BufSize); + #elif defined(_UNIX) + FILE *rndf = fopen("/dev/urandom", "r"); + if (rndf!=NULL) |