changeset 1891:46576f74b3a1 trunk

[svn] - use rand() instead
author nenolod
date Sun, 22 Oct 2006 12:12:43 -0700
parents 90d95cd7edb5
children 9d53c0faac1b
files ChangeLog audacious/util.c
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Oct 22 11:54:51 2006 -0700
+++ b/ChangeLog	Sun Oct 22 12:12:43 2006 -0700
@@ -1,3 +1,15 @@
+2006-10-22 18:54:51 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2737]
+  - remove mkdtemp().
+  - if mkdtemp() is unavailable, use /tmp/audacious.SYSTEMTIME as path.
+  
+  trunk/audacious/Makefile  |    1 
+  trunk/audacious/mkdtemp.c |  130 ----------------------------------------------
+  trunk/audacious/util.c    |    8 ++
+  trunk/audacious/util.h    |    5 -
+  4 files changed, 7 insertions(+), 137 deletions(-)
+
+
 2006-10-22 18:38:20 +0000  Derek Pomery <nemo@m8y.org>
   revision [2735]
   Patch by Michael Hanselmann to fetch a per-song image file.
--- a/audacious/util.c	Sun Oct 22 11:54:51 2006 -0700
+++ b/audacious/util.c	Sun Oct 22 12:12:43 2006 -0700
@@ -323,7 +323,7 @@
         return NULL;
     }
 #else
-    tmpdir = g_strdup_printf("%s/audacious.%ld", g_get_tmp_dir(), time(NULL));
+    tmpdir = g_strdup_printf("%s/audacious.%ld", g_get_tmp_dir(), rand());
     make_directory(tmpdir, mode755);
 #endif