summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/crypt/arc4random.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c
index 37b1ad77c1..3b7f34faed 100644
--- a/src/lib/libc/crypt/arc4random.c
+++ b/src/lib/libc/crypt/arc4random.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: arc4random.c,v 1.44 2014/07/16 00:15:35 bcook Exp $ */ 1/* $OpenBSD: arc4random.c,v 1.45 2014/07/16 00:18:54 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, David Mazieres <dm@uun.org> 4 * Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -65,12 +65,14 @@ static struct {
65 65
66static inline void _rs_rekey(u_char *dat, size_t datlen); 66static inline void _rs_rekey(u_char *dat, size_t datlen);
67 67
68#ifndef MAP_INHERIT_ZERO
68static inline void 69static inline void
69_rs_forkhandler(void) 70_rs_forkhandler(void)
70{ 71{
71 if (rs) 72 if (rs)
72 rs->rs_count = 0; 73 rs->rs_count = 0;
73} 74}
75#endif /* MAP_INHERIT_ZERO */
74 76
75static inline void 77static inline void
76_rs_init(u_char *buf, size_t n) 78_rs_init(u_char *buf, size_t n)