aboutsummaryrefslogtreecommitdiffstats
path: root/libar2simplified_decode_r.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-23Fix critical bug for automatic salt generation1.1.2Mattias Andrée1-1/+1
If getrandom(3) generated bytes with the highest bit set and (char) is (signed char) (ones' or two's complement is used), those bytes would become negative indices, rather than be inside [0, 64), causing random data to be writting into the salt. Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Improve srand seedMattias Andrée1-1/+24
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Whitespace fix + do not call srand unless requiredMattias Andrée1-12/+14
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add libar2simplified_decode_rMattias Andrée1-4/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-13XOR seed provided to srand with data depending on current seed, in case it is already seed in a better mannerMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>