schwern / Gravatar-URL

Perl module to make URLs for Gravatars from an email address
http://search.cpan.org/dist/Gravatar-URL
Other
9 stars 4 forks source link

Don't rely on rand details for testing t/libravatar.t #7

Closed schwern closed 8 years ago

schwern commented 8 years ago

Libravatar::URL uses rand() to pick a hostname out of a federated list of servers. t/libravatar.t sets srand to be able to predict how Libravatar::URL will behave. Unfortunately sometimes Perl uses different implementations of rand that produce different results.

Make the test deterministic some other way.

See http://matrix.cpantesters.org/?dist=Gravatar-URL%201.06;os=mswin32;perl=5.18.2;reports=1 for examples of failures.