From f47499f1579c47a15ebcdbcdc5f830748b05cc3c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 11 Jul 2013 11:38:46 -0400 Subject: Use g_random_int instead of ::random for portability --- gtk2_ardour/utils.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/utils.cc') diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index d4bc460269..eb3f4ab55d 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -781,9 +781,9 @@ unique_random_color (list& used_colors) const int32_t max_saturation = 48000; // 65535 would open up the whole color wheel - newcolor.set_red (random() % max_saturation); - newcolor.set_blue (random() % max_saturation); - newcolor.set_green (random() % max_saturation); + newcolor.set_red (g_random_int() % max_saturation); + newcolor.set_blue (g_random_int() % max_saturation); + newcolor.set_green (g_random_int() % max_saturation); if (used_colors.size() == 0) { used_colors.push_back (newcolor); -- cgit v1.2.3