Fixed typo.
Fixed errorcode handling.
Fixed getrandom syscall.