=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/rand.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/openssl/rand.c 2015/09/11 14:30:23 1.8 --- src/usr.bin/openssl/rand.c 2015/10/10 22:28:51 1.9 *************** *** 1,4 **** ! /* $OpenBSD: rand.c,v 1.8 2015/09/11 14:30:23 bcook Exp $ */ /* ==================================================================== * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. * --- 1,4 ---- ! /* $OpenBSD: rand.c,v 1.9 2015/10/10 22:28:51 doug Exp $ */ /* ==================================================================== * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. * *************** *** 108,113 **** --- 108,118 ---- int num = -1; int i, r; BIO *out = NULL; + + if (single_execution) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) + perror("pledge"); + } memset(&rand_config, 0, sizeof(rand_config));