change some srand to srand_deterministic, found by deraadt@
This commit is contained in:
parent
a70b2d603a
commit
feef5418bf
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.64 2014/11/03 04:29:05 bcallah Exp $
|
||||
# $OpenBSD: Makefile,v 1.65 2014/12/09 20:29:03 sthen Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT = input and output plugins for Audacious
|
||||
|
||||
V = 3.5.2
|
||||
REVISION = 0
|
||||
|
||||
DISTNAME = audacious-plugins-$V
|
||||
CATEGORIES = audio multimedia
|
||||
|
12
audio/audacious-plugins/patches/patch-src_psf_psx_hw_c
Normal file
12
audio/audacious-plugins/patches/patch-src_psf_psx_hw_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_psf_psx_hw_c,v 1.1 2014/12/09 20:29:03 sthen Exp $
|
||||
--- src/psf/psx_hw.c.orig Tue Dec 9 20:10:57 2014
|
||||
+++ src/psf/psx_hw.c Tue Dec 9 20:11:17 2014
|
||||
@@ -1547,7 +1547,7 @@ void psx_bios_hle(uint32_t pc)
|
||||
#if DEBUG_HLE_BIOS
|
||||
printf("HLEBIOS: srand(%x)\n", a0);
|
||||
#endif
|
||||
- srand(a0);
|
||||
+ srand_deterministic(a0);
|
||||
break;
|
||||
|
||||
case 0x33: // malloc
|
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.38 2013/03/21 08:45:11 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.39 2014/12/09 20:29:03 sthen Exp $
|
||||
|
||||
COMMENT= free audio editor
|
||||
|
||||
V= 1.3.9
|
||||
DISTNAME= audacity-minsrc-${V}
|
||||
PKGNAME= audacity-${V}
|
||||
REVISION= 5
|
||||
REVISION= 6
|
||||
CATEGORIES= audio
|
||||
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
@ -1,6 +1,15 @@
|
||||
$OpenBSD: patch-src_Benchmark_cpp,v 1.4 2009/10/28 18:40:13 jakemsr Exp $
|
||||
--- src/Benchmark.cpp.orig Sat Oct 25 05:14:27 2008
|
||||
+++ src/Benchmark.cpp Thu Nov 13 15:24:26 2008
|
||||
$OpenBSD: patch-src_Benchmark_cpp,v 1.5 2014/12/09 20:29:03 sthen Exp $
|
||||
--- src/Benchmark.cpp.orig Mon Aug 31 11:45:38 2009
|
||||
+++ src/Benchmark.cpp Tue Dec 9 20:18:56 2014
|
||||
@@ -340,7 +340,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
|
||||
t->SetRate(1);
|
||||
|
||||
- srand(randSeed);
|
||||
+ srand_deterministic(randSeed);
|
||||
|
||||
int nChunks, chunkSize;
|
||||
//chunkSize = 7500 + (rand() % 1000);
|
||||
@@ -530,7 +530,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
delete fact;
|
||||
d->Deref();
|
||||
|
@ -1,7 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2014/10/18 14:57:37 bcallah Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2014/12/09 20:29:03 sthen Exp $
|
||||
|
||||
COMMENT = module audio player
|
||||
DISTNAME = mikmod-3.2.6
|
||||
REVISION = 0
|
||||
CATEGORIES = audio
|
||||
|
||||
HOMEPAGE = http://mikmod.shlomifish.org/
|
||||
|
12
audio/mikmod/patches/patch-src_mlist_c
Normal file
12
audio/mikmod/patches/patch-src_mlist_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_mlist_c,v 1.1 2014/12/09 20:29:03 sthen Exp $
|
||||
--- src/mlist.c.orig Tue Dec 9 20:26:01 2014
|
||||
+++ src/mlist.c Tue Dec 9 20:26:19 2014
|
||||
@@ -101,7 +101,7 @@ void PL_InitList(PLAYLIST * pl)
|
||||
const char * s = getenv("MIKMOD_SRAND_CONSTANT");
|
||||
if (s)
|
||||
{
|
||||
- srandom((unsigned int)atoi(s));
|
||||
+ srandom_deterministic((unsigned int)atoi(s));
|
||||
}
|
||||
else
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2013/03/11 10:50:02 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2014/12/09 20:29:03 sthen Exp $
|
||||
|
||||
COMMENT= collection of utilities for C programmers
|
||||
|
||||
DISTNAME= cutils-1.6
|
||||
REVISION = 1
|
||||
REVISION = 2
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://www.sigala.it/sandro/software.php
|
||||
|
12
devel/cutils/patches/patch-src_cobfusc_cobfusc_c
Normal file
12
devel/cutils/patches/patch-src_cobfusc_cobfusc_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_cobfusc_cobfusc_c,v 1.1 2014/12/09 20:29:03 sthen Exp $
|
||||
--- src/cobfusc/cobfusc.c.orig Tue Dec 9 20:23:33 2014
|
||||
+++ src/cobfusc/cobfusc.c Tue Dec 9 20:23:42 2014
|
||||
@@ -908,7 +908,7 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
case 's':
|
||||
opt_random_seed = atoi(optarg);
|
||||
- srand(opt_random_seed);
|
||||
+ srand_deterministic(opt_random_seed);
|
||||
break;
|
||||
case 't':
|
||||
opt_trigraphize = 1;
|
Loading…
x
Reference in New Issue
Block a user