summaryrefslogtreecommitdiff
path: root/libgcompat/random_r.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-19random_r: set `x` before calling savestate_r A. Wilcox1-1/+1
Prevents segfault when calling initstate_r.
2021-06-25random_r: Add reentrant random functions from LSBGeorge Matsumura1-0/+157
This adds random_r() and associated functions, mostly adapted from musl's implementation of random(). Signed-off-by: George Matsumura <gm960420@ohio.edu>