Instead of just seeings my posts page as /posts/1
and so on, I'd prefer to have a random string thats more something like this /posts/299432
. I did some research and found this answer on S.O.
How to make model IDs in Rails unpredictable and random
It does work, but I don't think it created a unique ID for the post, so there's a small probability that the post's id will get duplicated I would think.
My question here is will that method create unique strings to use? or should I be doing something differently to generate these unique random ID's for my posts??
Thanks