6 ms·
Where does this handle getting the same random shortened url twice?
by agscala 12y ago
Where does this handle getting the same random shortened url twice?
- deleted 12y ago[deleted]
- deleted 12y ago[deleted]
- xwowsersx 12y agoGood catch - it doesn't. We'd need to add a line to check for collision and retry. Better yet is to use hashing instead of random string as some folks mentioned in the comments on the blog.