pidgin/pidgin

Fix coverity 1244226

2016-12-12, Gary Kramlich
4e604f83f847
Parents bc5b07024b3a
Children 2c48ea85e14e
Fix coverity 1244226
--- a/libpurple/protocols/gg/oauth/oauth.c Mon Dec 12 17:52:53 2016 -0600
+++ b/libpurple/protocols/gg/oauth/oauth.c Mon Dec 12 17:56:00 2016 -0600
@@ -40,7 +40,7 @@
return;
while (len > 1) {
- *buf++ = charset[(unsigned) (((float) sizeof(charset) - 1.0) * rand() / (RAND_MAX + 1.0))];
+ *buf++ = charset[(unsigned) (((float) sizeof(charset) - 1.0) * g_random_int() / (RAND_MAX + 1.0))];
len--;
}