def generate_temporary_filename postfix
	postfix = "_#{postfix}" if (not postfix.empty?) && (not postfix.start_with? '_')
	begin
		name = "/tmp/cow_#{rand(100000..999999)}#{postfix}"
	end while File.exists? name
	return name
end
