--- 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--; }