How to generate a Doodle like poll id on app engine?
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'.
精彩评论