GRand: avoid overflow
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jun 2011 03:37:23 +0000 (23:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jun 2011 03:37:23 +0000 (23:37 -0400)
commit77be95cdce7f875a10576ac72624024b04b86a65
tree1dfd8524a9ddc12be16dc3af300e91ef4c458f9f
parentdeed4dd36b3d0f4913a1350536dce0cd010b0549
GRand: avoid overflow

Otherwise, g_random_double_range (-G_MAXDOUBLE, G_MAXDOUBLE)
doesn't work as expected.

https://bugzilla.gnome.org/show_bug.cgi?id=502560
glib/grand.c