Merge branch 'feature/crypt-passwords' of https://github.com/ennorehling/eressea into feature/crypt-passwords

This commit is contained in:
Enno Rehling 2016-01-14 20:05:28 +01:00
commit 4fb453863d
2 changed files with 2 additions and 2 deletions

2
crypto

@ -1 +1 @@
Subproject commit 0ce0c5d6e1963b31863216d24d2cc5594f9a8893
Subproject commit f9ecf5a10983adfc7bd1bee8ac1f9a3abf1d41d9

View File

@ -34,7 +34,7 @@ char *password_gensalt(void) {
int buflen = SALTLEN;
while (buflen) {
unsigned long ul = genrand_int32();
b64_from_24bit(ul & 0xFF, (ul>>8)&0xff, (ul>>16)&0xFF, 4);
b64_from_24bit((char)(ul & 0xFF), (char)((ul>>8)&0xff), (char)((ul>>16)&0xFF), 4);
}
salt[SALTLEN] = 0;
return salt;