When using Tempfile Ruby is creating a file with a thread-safe and inter-process-safe name. I only need a file name in that way.
Tempfile
I was wondering if ther
Since you only need the filename, what about using the SecureRandom for that:
require 'securerandom' filename = "#{SecureRandom.hex(6)}.png" #=> "0f04dd94addf.png"
You can also use SecureRandom.alphanumeric
SecureRandom.alphanumeric