Fork me on GitHub
#clojure-spec
<
2018-06-19
>
mpenet09:06:24

you can mix both to limit the awful (g/fmap rand-uuid (g/return nil)) I think

mpenet09:06:37

but it's still bad

lwhorton14:06:57

i see. so if you aren’t using the generator’s api test.check can’t work its magic?

favila17:06:08

test check needs to control all sources of entropy

favila17:06:54

(if you want the other features of generators eg strinking and repetition to work)

Alex Miller (Clojure team)17:06:54

@lwhorton no, test.check uses the same api. the issue here is using external sources of randomness

👍 4
favila17:06:35

gen/uuid already exists, is that not ok for you?

lwhorton20:06:33

oh, i didn’t notice that. i will check it out. my real gotchya was that i have an instance? check against cljs.core/UUID and wasn’t sure how to make that happen randomly.

gfredericks22:06:19

The builtin uuid generator should only generate instances of that type