Web applications have a couple of common use cases for random tokens. For example, e-mail confirmation or password reset e-mails usually have a link that contains a random token. The same goes for “share this item” links in case the item does not have a canonical URL. The token should be: Unpredictable. It would be bad if an attacker was able to guess the token for a password reset e-mail. URL-safe. You’re going to embed it in an URL. How to generate such tokens in Clojure? Random data ...