Patch for (possible) short read from urandom