Mkstemp changes

No longer use /dev/urandom