openbsd-ports/multimedia/mkvtoolnix/patches/patch-src_common_random_cpp
benoit ed02b2e5e7 - update mkvtoolnix to 4.0.0
- update patches
- use new WANTLIB/LIB_DEPENDS style

initial diff from brad, ok ajacoutot@
2010-07-17 22:52:50 +00:00

13 lines
622 B
Plaintext

$OpenBSD: patch-src_common_random_cpp,v 1.4 2010/07/17 22:52:53 benoit Exp $
--- src/common/random.cpp.orig Sat Jun 5 08:24:39 2010
+++ src/common/random.cpp Sat Jun 26 20:39:53 2010
@@ -98,7 +98,7 @@ random_c::generate_bytes(void *destination,
try {
if (!m_tried_dev_urandom) {
m_tried_dev_urandom = true;
- m_dev_urandom = mm_file_io_cptr(new mm_file_io_c("/dev/urandom", MODE_READ));
+ m_dev_urandom = mm_file_io_cptr(new mm_file_io_c("/dev/arandom", MODE_READ));
}
if (m_dev_urandom.is_set() && (m_dev_urandom->read(destination, num_bytes) == num_bytes))
return;