Alternatively, just use the id generator. Personally I use the id generator and crockford's base32 encoding variant to generate "pretty" (that is, short enough to type or read over phone if necessary) ids for public URLs.
Jeff On Wed, May 27, 2015 at 7:55 AM, Karl MacMillan <[email protected]> wrote: > > On May 27, 2015, at 10:50 AM, Saturnino Mateus <[email protected]> > wrote: > > Hello! I need to create a page to tracking orders, each order must have a > key. How can i generate this key? Im thinking use hash, is there any good > hash function without colision? Is there other way to solve it with GAE? > > > This isn’t exactly GAE specific, but you probably want a UUID: > > https://docs.oracle.com/javase/7/docs/api/java/util/UUID.html > https://docs.python.org/2/library/uuid.html > > Karl > > Regards > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/e4ed5136-9aae-47b2-a34c-5635526a541f%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/E6774E7B-84AF-46F0-AF2B-7BC6B43E7633%40rakkoon.com > <https://groups.google.com/d/msgid/google-appengine/E6774E7B-84AF-46F0-AF2B-7BC6B43E7633%40rakkoon.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CADK-0ujxkGZzptcxqKKYXTtAvfSH3FNmLUdR_Xmr_zvMk51EAQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
