mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Fix Windows builds, remove unnecessary srandom() calls
Since fc90c92a49 Gtkmm2ext::random_color () uses g_random_int()
which is implicitly seeded when first used.
This commit is contained in:
parent
bf26be71aa
commit
10253a6ae4
4 changed files with 0 additions and 24 deletions
|
|
@ -19,10 +19,6 @@ using namespace Gtk;
|
|||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#define srandom() srand()
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
|
|
@ -36,8 +32,6 @@ main (int argc, char* argv[])
|
|||
|
||||
c->set_background_color (0xffffffff);
|
||||
|
||||
srandom (time ((time_t *) 0));
|
||||
|
||||
// cview.set_size_request (100, 100);
|
||||
|
||||
win.add (cview);
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ using namespace Gtk;
|
|||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#define srandom() srand()
|
||||
#endif
|
||||
|
||||
#define SQUARED 16
|
||||
|
||||
struct Column {
|
||||
|
|
@ -94,8 +90,6 @@ main (int argc, char* argv[])
|
|||
|
||||
c->set_background_color (0xffffffff);
|
||||
|
||||
srandom (time ((time_t *) 0));
|
||||
|
||||
// cview.set_size_request (100, 100);
|
||||
|
||||
win.add (cview);
|
||||
|
|
|
|||
|
|
@ -19,10 +19,6 @@ using namespace Gtk;
|
|||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#define srandom() srand()
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
|
|
@ -36,8 +32,6 @@ main (int argc, char* argv[])
|
|||
|
||||
c->set_background_color (0xffffffff);
|
||||
|
||||
srandom (time ((time_t *) 0));
|
||||
|
||||
cview.set_size_request (100, 100);
|
||||
|
||||
win.add (cview);
|
||||
|
|
|
|||
|
|
@ -19,10 +19,6 @@ using namespace Gtk;
|
|||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#define srandom() srand()
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
|
|
@ -36,8 +32,6 @@ main (int argc, char* argv[])
|
|||
|
||||
c->set_background_color (0xffffffff);
|
||||
|
||||
srandom (time ((time_t *) 0));
|
||||
|
||||
win.add (cview);
|
||||
|
||||
/* Make some items */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue