Generate tmpname on its own
Generate tmpname on its own

`make_tmpname` was removed by https://github.com/ruby/ruby/commit/25d56ea7b7b52dc81af30c92a9a0e2d2dab6ff27.
In this case, we want a file name, not a `File`. So cannot use `Tempfile`.

Fixes #31458

illacceptanything/illacceptanything,georgeclaghorn/rails,untidy-hair/rails,EmmaB/rails-1,mohitnatoo/rails,MSP-Greg/rails,untidy-hair/rails,rails/rails,kmcphillips/rails,Erol/rails,arunagw/rails,tjschuck/rails,gauravtiwari/rails,MSP-Greg/rails,Edouard-chin/rails,illacceptanything/illacceptanything,kmcphillips/rails,MSP-Greg/rails,shioyama/rails,utilum/rails,shioyama/rails,georgeclaghorn/rails,Stellenticket/rails,rails/rails,jeremy/rails,printercu/rails,illacceptanything/illacceptanything,baerjam/rails,BlakeWilliams/rails,Stellenticket/rails,prathamesh-sonpatki/rails,mohitnatoo/rails,schuetzm/rails,assain/rails,fabianoleittes/rails,yhirano55/rails,utilum/rails,joonyou/rails,illacceptanything/illacceptanything,palkan/rails,lcreid/rails,Edouard-chin/rails,jeremy/rails,rafaelfranca/omg-rails,pvalena/rails,deraru/rails,kddeisz/rails,deraru/rails,flanger001/rails,deraru/rails,assain/rails,arunagw/rails,yawboakye/rails,Erol/rails,yasslab/railsguides.jp,yahonda/rails,bogdanvlviv/rails,starknx/rails,rails/rails,pvalena/rails,brchristian/rails,schuetzm/rails,Envek/rails,betesh/rails,illacceptanything/illacceptanything,Erol/rails,Edouard-chin/rails,yawboakye/rails,vipulnsward/rails,vipulnsward/rails,yahonda/rails,arunagw/rails,notapatch/rails,yalab/rails,vipulnsward/rails,brchristian/rails,fabianoleittes/rails,baerjam/rails,betesh/rails,aditya-kapoor/rails,eileencodes/rails,vipulnsward/rails,schuetzm/rails,shioyama/rails,esparta/rails,iainbeeston/rails,kddeisz/rails,prathamesh-sonpatki/rails,arunagw/rails,flanger001/rails,gfvcastro/rails,yhirano55/rails,repinel/rails,gauravtiwari/rails,illacceptanything/illacceptanything,iainbeeston/rails,yahonda/rails,esparta/rails,mechanicles/rails,flanger001/rails,fabianoleittes/rails,kmcphillips/rails,pvalena/rails,tgxworld/rails,prathamesh-sonpatki/rails,BlakeWilliams/rails,illacceptanything/illacceptanything,mechanicles/rails,eileencodes/rails,untidy-hair/rails,fabianoleittes/rails,tgxworld/rails,repinel/rails,mohitnatoo/rails,illacceptanything/illacceptanything,palkan/rails,eileencodes/rails,tgxworld/rails,palkan/rails,yasslab/railsguides.jp,Erol/rails,aditya-kapoor/rails,Stellenticket/rails,yawboakye/rails,tjschuck/rails,Envek/rails,yalab/rails,notapatch/rails,Vasfed/rails,bogdanvlviv/rails,betesh/rails,travisofthenorth/rails,aditya-kapoor/rails,brchristian/rails,mohitnatoo/rails,shioyama/rails,utilum/rails,notapatch/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,yalab/rails,EmmaB/rails-1,tgxworld/rails,yawboakye/rails,schuetzm/rails,gauravtiwari/rails,flanger001/rails,utilum/rails,lcreid/rails,kddeisz/rails,BlakeWilliams/rails,assain/rails,Envek/rails,Stellenticket/rails,rafaelfranca/omg-rails,illacceptanything/illacceptanything,notapatch/rails,rafaelfranca/omg-rails,EmmaB/rails-1,bogdanvlviv/rails,eileencodes/rails,odedniv/rails,joonyou/rails,tjschuck/rails,iainbeeston/rails,printercu/rails,Edouard-chin/rails,untidy-hair/rails,jeremy/rails,palkan/rails,travisofthenorth/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,Vasfed/rails,printercu/rails,esparta/rails,kmcphillips/rails,bogdanvlviv/rails,yhirano55/rails,Envek/rails,Vasfed/rails,illacceptanything/illacceptanything,travisofthenorth/rails,lcreid/rails,mechanicles/rails,betesh/rails,odedniv/rails,Vasfed/rails,jeremy/rails,deraru/rails,BlakeWilliams/rails,odedniv/rails,yasslab/railsguides.jp,repinel/rails,esparta/rails,yahonda/rails,prathamesh-sonpatki/rails,gfvcastro/rails,joonyou/rails,baerjam/rails,mechanicles/rails,starknx/rails,rails/rails,repinel/rails,georgeclaghorn/rails,aditya-kapoor/rails,kddeisz/rails,tjschuck/rails,yalab/rails,MSP-Greg/rails,assain/rails,lcreid/rails,illacceptanything/illacceptanything,baerjam/rails,georgeclaghorn/rails,yasslab/railsguides.jp,gfvcastro/rails,iainbeeston/rails,pvalena/rails,printercu/rails,travisofthenorth/rails,yhirano55/rails,gfvcastro/rails,joonyou/rails,starknx/rails