switch from syscall to getrandom