mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Use g_random_int instead of ::random for portability
This commit is contained in:
parent
27eecdc88b
commit
f47499f157
4 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue