diff options
author | Charles Longeau <github@chl.be> | 2013-11-02 01:41:30 +0100 |
---|---|---|
committer | Charles Longeau <github@chl.be> | 2013-11-02 01:41:30 +0100 |
commit | 9ea902fcb2e2a4fb2205cdf522ef0de057af42e2 (patch) | |
tree | 0097de83df62279306601359bb160d2297980578 /contrib | |
parent | sync configure.ac with portable OpenSSH (diff) | |
download | OpenSMTPD-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.c | 2 |
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++) { |