Ask HN: How should I create a unique id for entries that aren't incremental?

https://news.ycombinator.com/item?id=8727696
by tim_nuwin • 12 years ago
2 14 12 years ago

For example, right now when I'm creating boards (agile), it will create a new board and its id will be n + 1.

What is an efficient way of creating an ID where there won't be any collision even if there are 1 billion+ entries?

This ID will be used in a url..

Thanks, Tim

Related Stories

Loading related stories...

Source preview

news.ycombinator.com