soniakeys / graph

Simple and fast graph library
72 stars 7 forks source link

Don't rely on any rand sequence #72

Closed soniakeys closed 7 years ago

soniakeys commented 7 years ago

Some examples, and maybe even some tests, rely on consistent behavior from math/rand. Library behavior seems to be changing. I tried adding a known source but that doesn't even seem to be working. I think it's best to just pull all tests that rely on rand.

The library currently requires 1.9 for math/bits. Fixing examples to work with 1.9 for now, but all of the random examples should probably go before 1.10 is released.

soniakeys commented 7 years ago

Disabled these random examples from go test, added tip back in the travis build, documented the technique in hacking.adoc.