diff options
author | Rob <rob.manea@gmail.com> | 2009-11-04 22:35:35 +0100 |
---|---|---|
committer | Rob <rob.manea@gmail.com> | 2009-11-04 22:35:35 +0100 |
commit | 68c11ced82abac917bed5fdef208bde8b27e2481 (patch) | |
tree | c3402f1804da0dc7a1a1d366848c1708abb871ac /uzbl-core.c | |
parent | 57d0dd0f6bfc39a1f0624d6027a9cbb92a503ea5 (diff) |
allow for random numbers up to RAND_MAX
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 1e248f2..71f9203 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -2415,7 +2415,7 @@ main (int argc, char* argv[]) { struct timeval tv; gettimeofday(&tv, NULL); srand((unsigned int)tv.tv_sec*tv.tv_usec); - uzbl.xwin = rand()%65536; + uzbl.xwin = rand(); } else { uzbl.gui.main_window = create_window (); gtk_container_add (GTK_CONTAINER (uzbl.gui.main_window), uzbl.gui.vbox); |