aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorCharles Longeau <github@chl.be>2013-11-02 01:41:30 +0100
committerCharles Longeau <github@chl.be>2013-11-02 01:41:30 +0100
commit9ea902fcb2e2a4fb2205cdf522ef0de057af42e2 (patch)
tree0097de83df62279306601359bb160d2297980578 /contrib
parentsync configure.ac with portable OpenSSH (diff)
downloadOpenSMTPD-9ea902fcb2e2a4fb2205cdf522ef0de057af42e2.tar.xz
OpenSMTPD-9ea902fcb2e2a4fb2205cdf522ef0de057af42e2.zip
sync with OpenSSH openbsd-compat/arc4random.c containing new ChaCha based random number generator for OpenBSD
while there, reduce delta between portable and master
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libexec/encrypt/encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libexec/encrypt/encrypt.c b/contrib/libexec/encrypt/encrypt.c
index 7fcf565f..00c90654 100644
--- a/contrib/libexec/encrypt/encrypt.c
+++ b/contrib/libexec/encrypt/encrypt.c
@@ -79,7 +79,7 @@ print_passwd(const char *string)
const char *p;
for (n = 0; n < SALT_LEN; ++n)
- to64(&salt[n], chacha_uniform(0xff), 1);
+ to64(&salt[n], arc4random_uniform(0xff), 1);
salt[SALT_LEN] = '\0';
for (n = 0; ids[n]; n++) {