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
Signed by: rgareus
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::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);

View File

@ -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);

View File

@ -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);

View File

@ -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 */