use /dev/arandom instead of /dev/urandom. reading from /dev/urandom
is too slow.
This commit is contained in:
parent
402a883cb7
commit
177d00308f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.30 2009/01/23 17:42:14 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.31 2009/03/23 00:29:54 jakemsr Exp $
|
||||
|
||||
CATEGORIES = audio x11 x11/kde
|
||||
COMMENT = music player for KDE
|
||||
@ -7,7 +7,7 @@ HOMEPAGE = http://amarok.kde.org/
|
||||
V = 1.4.10
|
||||
MASTER_SITES = ${MASTER_SITE_KDE:=stable/amarok/$V/src/}
|
||||
DISTNAME = amarok-$V
|
||||
PKGNAME = ${DISTNAME}p0
|
||||
PKGNAME = ${DISTNAME}p1
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
# GPLv2/LGPLv2/GFDL
|
||||
|
12
audio/amarok/patches/patch-amarok_src_metabundle_cpp
Normal file
12
audio/amarok/patches/patch-amarok_src_metabundle_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-amarok_src_metabundle_cpp,v 1.1 2009/03/23 00:29:54 jakemsr Exp $
|
||||
--- amarok/src/metabundle.cpp.orig Sun Mar 22 16:25:14 2009
|
||||
+++ amarok/src/metabundle.cpp Sun Mar 22 16:26:29 2009
|
||||
@@ -1705,7 +1705,7 @@ MetaBundle::getRand()
|
||||
//KRandom supposedly exists in SVN, although it's not checked out on my machine, and it's certainly not in 3.3, so I'm just going to steal its code
|
||||
|
||||
unsigned int seed;
|
||||
- int fd = open("/dev/urandom", O_RDONLY);
|
||||
+ int fd = open("/dev/arandom", O_RDONLY);
|
||||
if (fd < 0 || ::read(fd, &seed, sizeof(seed)) != sizeof(seed))
|
||||
{
|
||||
// No /dev/urandom... try something else.
|
Loading…
Reference in New Issue
Block a user