aboutsummaryrefslogtreecommitdiffstats
path: root/libar2simplified_decode_r.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix critical bug for automatic salt generation1.1.2Mattias Andrée2023-06-231-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>
* Improve srand seedMattias Andrée2023-06-231-1/+24
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Whitespace fix + do not call srand unless requiredMattias Andrée2023-06-231-12/+14
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add libar2simplified_decode_rMattias Andrée2022-02-151-0/+196
Signed-off-by: Mattias Andrée <maandree@kth.se>