Make a unique filename and open it for reading/writing. The returned PosixPath is the (possibly relative) path of the created file, which is padded with 6 random characters. The argument is the desired prefix of the filepath of the temporary file to be created.
If you aren't using GHC or Hugs then this function simply wraps mktemp and so shouldn't be considered safe.