# File lib/openid/filestore.rb, line 50 def createAuthKey auth_key = OpenID::Util.randomString(@@AUTH_KEY_LEN) f, tmp = mktemp begin begin f.write(auth_key) f.fsync ensure f.close end begin File.link(tmp, @auth_key_name) rescue Errno::EEXIST raise if readAuthKey.nil? end ensure self.removeIfPresent(tmp) end auth_key end