getrandom: add helper for getrandom() syscall