ports/telephony/resiprocate/patches/patch-rutil_stun_Stun_cxx

22 lines
397 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: rutil/stun/Stun.cxx
--- rutil/stun/Stun.cxx.orig
+++ rutil/stun/Stun.cxx
@@ -802,6 +802,9 @@ stunRand()
{
// return 32 bits of random stuff
resip_assert( sizeof(int) == 4 );
+#if defined(__OpenBSD__)
+ return arc4random();
+#else
static bool init=false;
if ( !init )
{
@@ -857,6 +860,7 @@ stunRand()
return ret;
#else
return random();
+#endif
#endif
}