summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/crypto.c b/crypto/crypto.c
index a753035..634c083 100644
--- a/crypto/crypto.c
+++ b/crypto/crypto.c
@@ -116,5 +116,6 @@ void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, DES_key_schedu
static void __attribute__((constructor)) init(void)
{
urandom_fd = open("/dev/urandom", O_RDONLY);
+ fcntl(urandom_fd, F_SETFD, fcntl(urandom_fd, F_GETFD) | FD_CLOEXEC);
}
#endif