diff options
Diffstat (limited to 'libar2simplified_decode_r.c')
-rw-r--r-- | libar2simplified_decode_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libar2simplified_decode_r.c b/libar2simplified_decode_r.c index 3f9dfea..545ecde 100644 --- a/libar2simplified_decode_r.c +++ b/libar2simplified_decode_r.c @@ -95,7 +95,7 @@ random_salt(char *out, size_t n, int (*random_byte_generator)(char *out, size_t } for (i = 0; i < n; i++) - out[i] = ALPHABET[out[i] % 64]; + out[i] = ALPHABET[out[i] & 63]; return 0; } |