summaryrefslogtreecommitdiff
path: root/src/terminal-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-util.c')
-rw-r--r--src/terminal-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal-util.c b/src/terminal-util.c
index ce97f41..3ef9040 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -24,7 +24,6 @@
#include <string.h>
#include <stdlib.h>
-#include <time.h>
#include <unistd.h>
#include <sys/types.h>
@@ -49,7 +48,8 @@ terminal_util_set_unique_role (GtkWindow *window, const char *prefix)
{
char *role;
- role = g_strdup_printf ("%s-%d-%d-%d", prefix, getpid (), g_random_int (), (int) time (NULL));
+ role = g_strdup_printf ("%s-%d-%d-%" G_GINT64_FORMAT, prefix, getpid (), g_random_int (),
+ g_get_real_time () / G_USEC_PER_SEC);
gtk_window_set_role (window, role);
g_free (role);
}