libpurple/protocols/gg/oauth/oauth.c

changeset 38197
4e604f83f847
parent 35359
d8aa47a78f55
child 38311
0444cac8e452
--- 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--;
 	}
 

mercurial