json: fix test when rand returns 0.
commitd75dae75d741eb852f400ccda88079bc3f26a3ad
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 6 Jul 2011 18:38:24 +0000 (6 18:38 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 6 Jul 2011 18:38:24 +0000 (6 18:38 +0000)
tree19cfda924d3515d74553153864902b4c267e10bd
parent60b45394386c7b833c9b95f7f034532a1411cfc7
json: fix test when rand returns 0.

Fixes using gccgo when optimizing, which changes the order of
calls to rand.  Same patch proposed upstream.

From-SVN: r175927
libgo/go/json/scanner_test.go