When I run my Hspec test suite, it mentions the random seed that it used for that run. I assume it’s using that seed for the properties, but I’d also like to use it to generate arbitrary examples in my non-property examples. How would I go about doing that?
To be more specific, I’m trying to figure out how to get access to the same source of randomness that Hspec is using. I’ve been over the API docs looking for something shaped like SpecM a (Gen x)
, and I don’t see anything that would allow me to do that.