don't we have a "create temp file" API like mktemp in Gecko? I'd like the filename to be somewhat randomized and the file to be in /tmp instead of gaiadir