Ruby has SecureRandom for this sort of thing: https://docs.ruby-lang.org/en/2.4.0/SecureRandom.html
Walter > On Oct 6, 2019, at 5:08 AM, bouazza Mohamed <m.bouazza...@gmail.com> wrote: > > Hi everyone , > I have a job interview test to build a simple microservice that can receive > an uploaded image and return a unique identifier for the uploaded image that > can be used subsequently to retrieve the image. > > Do you have some ideas on lib and UUID that can be used . normaly in PHP > there some can be done in help using this : > > Link 1: https://github.com/ramsey/uuid > Link 2 : http://image.intervention.io/ > > > Thank you all lot in advance > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/01d77a84-f14a-477f-af8a-de1e94c47ed0%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/76942266-AAA8-4795-824A-B6F4FE2E3311%40wdstudio.com.