阅读背景:

我如何在Ruby中生成随机且唯一的字符串?

来源:互联网 

In a Ruby on Rails app I am working on I allow users to upload files and want to give these files a short, random alphanumeric name. (Eg 'g7jf8' or '3bp76'). What is the best way to do this?In a Ruby on Rails app I am working on I allow




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: