summaryrefslogtreecommitdiff
path: root/src/util/rand_xor.c
AgeCommit message (Collapse)AuthorFilesLines
2017-03-23util/rand_xor: add function to seed randTimothy Arceri1-0/+65
V2: pass the seed to the seed function so that we can isolate its uses. Stop leaking fd when urandom couldn't be read. Reviewed-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-03-23util: move rand_xorshift128plus() to utilsTimothy Arceri1-0/+20
V2: pass the seed to rand_xorshift128plus() so that we can isolate its uses. Reviewed-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>