Merge pull request #3642 from okhowang/getrandom

Use glibc's getrandom when glibc > 2.25