Patch for OSX tr + urandom issues