Index: trunk/psLib/test/math/tst_psRandom.c
===================================================================
--- trunk/psLib/test/math/tst_psRandom.c	(revision 4862)
+++ trunk/psLib/test/math/tst_psRandom.c	(revision 4951)
@@ -19,4 +19,6 @@
 #include <stdio.h>
 #include <math.h>
+#include <fcntl.h>
+#include <unistd.h>
 #include "pslib_strict.h"
 #include "psTest.h"
@@ -80,7 +82,10 @@
 
     // Valid type allocation with seed equal to zero
-    psLogSetDestination("file:seed_msglog1.txt");
+    int fd1 = creat("seed_msglog1.txt", 0666);
+    //    psLogSetDestination("file:seed_msglog1.txt");
+    psLogSetDestination(fd1);
     myRNG = psRandomAlloc(PS_RANDOM_TAUS, 0);
-    psLogSetDestination("dest:stderr");
+    //    psLogSetDestination("dest:stderr");
+    psLogSetDestination(2);
     if (myRNG == NULL) {
         psError(PS_ERR_UNKNOWN,true,"Could not allocate psRandom structure");
@@ -107,4 +112,5 @@
         return 6;
     }
+    close(fd1);
     psFree(myRNG);
 
@@ -291,7 +297,9 @@
     psRandom *myRNG1 = NULL;
     myRNG1 = psRandomAlloc(PS_RANDOM_TAUS, SEED);
-    psLogSetDestination("file:seed_msglog2.txt");
+    //    psLogSetDestination("dest:stderr");
+    psLogSetDestination(0);
     psRandomReset(myRNG1,0);
-    psLogSetDestination("dest:stderr");
+    //    psLogSetDestination("dest:stderr");
+    psLogSetDestination(2);
     psFree(myRNG1);
 
