Hash function

59 views
Skip to first unread message

Saturnino Mateus

unread,
May 27, 2015, 10:50:42 AM5/27/15
to google-a...@googlegroups.com
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?

Regards

Karl MacMillan

unread,
May 27, 2015, 10:55:44 AM5/27/15
to google-a...@googlegroups.com, google-a...@googlegroups.com

On May 27, 2015, at 10:50 AM, Saturnino Mateus <s.nata...@gmail.com> 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:


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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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.

Jeff Schnitzer

unread,
May 27, 2015, 11:25:24 AM5/27/15
to Google App Engine
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

Reply all
Reply to author
Forward
0 new messages