Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn generate-activation-code []
- (let [allowed-chars "abcdefghijklmnopqrstuvwxyz0123456789"]
- (apply str (take 5 (repeatedly #(rand-nth allowed-chars))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement