The diff below just replaces rand() with arc4random. Jan
Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/memtester/Makefile,v retrieving revision 1.10 diff -u -p -u -p -r1.10 Makefile --- Makefile 11 Oct 2013 23:50:57 -0000 1.10 +++ Makefile 16 Feb 2015 08:57:47 -0000 @@ -3,7 +3,7 @@ COMMENT= utility to test for memory faults DISTNAME= memtester-4.1.3 -REVISION= 0 +REVISION= 1 CATEGORIES= sysutils HOMEPAGE= http://pyropus.ca/software/memtester/ Index: patches/patch-sizes_h =================================================================== RCS file: patches/patch-sizes_h diff -N patches/patch-sizes_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-sizes_h 16 Feb 2015 08:57:47 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- sizes.h.orig Mon Feb 16 09:52:13 2015 ++++ sizes.h Mon Feb 16 09:52:29 2015 +@@ -14,7 +14,7 @@ + + #include <limits.h> + +-#define rand32() ((unsigned int) rand() | ( (unsigned int) rand() << 16)) ++#define rand32() arc4random() + + #if (ULONG_MAX == 4294967295UL) + #define rand_ul() rand32()