开发者

How to generate a Doodle like poll id on app engine?

开发者 https://www.devze.com 2023-01-07 20:34 出处:网络
I would like to generate an id for a poll that can be use开发者_C百科d in links. The id should not be not to easy to guess. Is there a preferred way to generate such an id on google app engine?UUID -

I would like to generate an id for a poll that can be use开发者_C百科d in links. The id should not be not to easy to guess. Is there a preferred way to generate such an id on google app engine?


UUID - http://en.wikipedia.org/wiki/UUID

String key = UUID.createNewUUID().toString();

As close to unique as makes no odds, and impossible to 'guess'.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号