Use g_random_int instead of ::random for portability

This commit is contained in:
Paul Davis 2013-07-11 11:38:46 -04:00
parent 27eecdc88b
commit f47499f157
4 changed files with 6 additions and 6 deletions

View file

@ -278,7 +278,7 @@ UIConfiguration::color_by_name (const std::string& name)
}
// cerr << string_compose (_("Color %1 not found"), name) << endl;
return RGBA_TO_UINT (random()%256,random()%256,random()%256,0xff);
return RGBA_TO_UINT (g_random_int()%256,g_random_int()%256,g_random_int()%256,0xff);
}
void