summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r--src/lib/libc/crypt/arc4random.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c
index e4b6369bf1..64248b6ac8 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.49 2014/07/20 20:51:13 bcook Exp $ */ 1/* $OpenBSD: arc4random.c,v 1.50 2014/07/21 18:13:12 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, David Mazieres <dm@uun.org> 4 * Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -165,6 +165,7 @@ static inline void
165_rs_random_u32(uint32_t *val) 165_rs_random_u32(uint32_t *val)
166{ 166{
167 u_char *keystream; 167 u_char *keystream;
168
168 _rs_stir_if_needed(sizeof(*val)); 169 _rs_stir_if_needed(sizeof(*val));
169 if (rs->rs_have < sizeof(*val)) 170 if (rs->rs_have < sizeof(*val))
170 _rs_rekey(NULL, 0); 171 _rs_rekey(NULL, 0);