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:
Robin Gareus 2021-08-14 01:29:37 +02:00
parent bf26be71aa
commit 10253a6ae4
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 0 additions and 24 deletions

View file

@ -19,10 +19,6 @@ using namespace Gtk;
using std::cerr; using std::cerr;
using std::endl; using std::endl;
#ifdef PLATFORM_WINDOWS
#define srandom() srand()
#endif
int int
main (int argc, char* argv[]) main (int argc, char* argv[])
{ {
@ -36,8 +32,6 @@ main (int argc, char* argv[])
c->set_background_color (0xffffffff); c->set_background_color (0xffffffff);
srandom (time ((time_t *) 0));
// cview.set_size_request (100, 100); // cview.set_size_request (100, 100);
win.add (cview); win.add (cview);

View file

@ -21,10 +21,6 @@ using namespace Gtk;
using std::cerr; using std::cerr;
using std::endl; using std::endl;
#ifdef PLATFORM_WINDOWS
#define srandom() srand()
#endif
#define SQUARED 16 #define SQUARED 16
struct Column { struct Column {
@ -94,8 +90,6 @@ main (int argc, char* argv[])
c->set_background_color (0xffffffff); c->set_background_color (0xffffffff);
srandom (time ((time_t *) 0));
// cview.set_size_request (100, 100); // cview.set_size_request (100, 100);
win.add (cview); win.add (cview);

View file

@ -19,10 +19,6 @@ using namespace Gtk;
using std::cerr; using std::cerr;
using std::endl; using std::endl;
#ifdef PLATFORM_WINDOWS
#define srandom() srand()
#endif
int int
main (int argc, char* argv[]) main (int argc, char* argv[])
{ {
@ -36,8 +32,6 @@ main (int argc, char* argv[])
c->set_background_color (0xffffffff); c->set_background_color (0xffffffff);
srandom (time ((time_t *) 0));
cview.set_size_request (100, 100); cview.set_size_request (100, 100);
win.add (cview); win.add (cview);

View file

@ -19,10 +19,6 @@ using namespace Gtk;
using std::cerr; using std::cerr;
using std::endl; using std::endl;
#ifdef PLATFORM_WINDOWS
#define srandom() srand()
#endif
int int
main (int argc, char* argv[]) main (int argc, char* argv[])
{ {
@ -36,8 +32,6 @@ main (int argc, char* argv[])
c->set_background_color (0xffffffff); c->set_background_color (0xffffffff);
srandom (time ((time_t *) 0));
win.add (cview); win.add (cview);
/* Make some items */ /* Make some items */