Use our random library.
Use correct errno for invalid op on Parrot fd.