Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use builtin random-uuid function for cljs. Check exact UUID length in test #10

Merged
merged 1 commit into from Jan 24, 2016
Merged

Conversation

jmmk
Copy link
Contributor

@jmmk jmmk commented Jan 23, 2016

Wasn't sure if there was a reason you were using your own implementation (likely the one in cljs.core didn't exist when you added yours). Here's where it's implemented if you're curious: https://github.com/clojure/clojurescript/blob/628d957f3ecabf8d26d57665abdef3dea765151e/src/main/cljs/cljs/core.cljs#L9866.

Changed the length test to be more exact - a generated UUID should always be 36 characters.

markmandel added a commit that referenced this pull request Jan 24, 2016
Use builtin random-uuid function for cljs. Check exact UUID length in test
@markmandel markmandel merged commit a4a3742 into markmandel:develop Jan 24, 2016
@markmandel
Copy link
Owner

Nice! I didn't realise that existed! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants