Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Randomize input and not the salt itself

  • Loading branch information...
commit 4aefe29a06e89d21876f1809428d04ad2b89ff5f 1 parent bfdc817
@rg3 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bcrypt.c
View
2  bcrypt.c
@@ -56,7 +56,7 @@ int bcrypt_gensalt(int factor, char salt[BCRYPT_HASHSIZE])
if (fd == -1)
return 1;
- if (try_read(fd, salt, RANDBYTES) != 0) {
+ if (try_read(fd, input, RANDBYTES) != 0) {
if (try_close(fd) != 0)
return 4;
return 2;
Please sign in to comment.
Something went wrong with that request. Please try again.