summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/arc4random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/crypt/arc4random.c')
-rw-r--r--src/lib/libc/crypt/arc4random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c
index 1a16bd3940..6cbab6e79b 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.55 2019/03/24 17:56:54 deraadt Exp $ */ 1/* $OpenBSD: arc4random.c,v 1.56 2022/02/28 21:56:29 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, David Mazieres <dm@uun.org> 4 * Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -78,7 +78,7 @@ _rs_init(u_char *buf, size_t n)
78 _exit(1); 78 _exit(1);
79 } 79 }
80 80
81 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8, 0); 81 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8);
82 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ); 82 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ);
83} 83}
84 84