diff options
author | Gilles Chehade <gilles@poolp.org> | 2013-12-05 12:25:47 +0100 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2013-12-05 12:25:47 +0100 |
commit | 8bb382dac0d36c49450aabd0e0f01d30b8ed7e5e (patch) | |
tree | 0fd2a2bd8eb5547346420412d1c137687df72c04 /contrib | |
parent | rename csprng to arc4 (diff) | |
download | OpenSMTPD-8bb382dac0d36c49450aabd0e0f01d30b8ed7e5e.tar.xz OpenSMTPD-8bb382dac0d36c49450aabd0e0f01d30b8ed7e5e.zip |
fix chacha to arc4 fuckups
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 27ea15cf..c2639914 100644 --- a/contrib/libexec/encrypt/encrypt.c +++ b/contrib/libexec/encrypt/encrypt.c @@ -81,7 +81,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++) { |