artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8813f0a
)
missing newline
author
deraadt
<deraadt@openbsd.org>
Mon, 21 Jul 2014 18:13:12 +0000
(18:13 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 21 Jul 2014 18:13:12 +0000
(18:13 +0000)
lib/libc/crypt/arc4random.c
patch
|
blob
|
history
diff --git
a/lib/libc/crypt/arc4random.c
b/lib/libc/crypt/arc4random.c
index
e4b6369
..
64248b6
100644
(file)
--- a/
lib/libc/crypt/arc4random.c
+++ b/
lib/libc/crypt/arc4random.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: arc4random.c,v 1.
49 2014/07/20 20:51:13 bcook Exp $
*/
+/* $OpenBSD: arc4random.c,v 1.
50 2014/07/21 18:13:12 deraadt Exp $
*/
/*
* Copyright (c) 1996, David Mazieres <dm@uun.org>
@@
-165,6
+165,7
@@
static inline void
_rs_random_u32(uint32_t *val)
{
u_char *keystream;
+
_rs_stir_if_needed(sizeof(*val));
if (rs->rs_have < sizeof(*val))
_rs_rekey(NULL, 0);