Changeset 4951 for trunk/psLib/test/math/tst_psRandom.c
- Timestamp:
- Sep 6, 2005, 2:15:51 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/math/tst_psRandom.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tst_psRandom.c
r4859 r4951 19 19 #include <stdio.h> 20 20 #include <math.h> 21 #include <fcntl.h> 22 #include <unistd.h> 21 23 #include "pslib_strict.h" 22 24 #include "psTest.h" … … 80 82 81 83 // Valid type allocation with seed equal to zero 82 psLogSetDestination("file:seed_msglog1.txt"); 84 int fd1 = creat("seed_msglog1.txt", 0666); 85 // psLogSetDestination("file:seed_msglog1.txt"); 86 psLogSetDestination(fd1); 83 87 myRNG = psRandomAlloc(PS_RANDOM_TAUS, 0); 84 psLogSetDestination("dest:stderr"); 88 // psLogSetDestination("dest:stderr"); 89 psLogSetDestination(2); 85 90 if (myRNG == NULL) { 86 91 psError(PS_ERR_UNKNOWN,true,"Could not allocate psRandom structure"); … … 107 112 return 6; 108 113 } 114 close(fd1); 109 115 psFree(myRNG); 110 116 … … 291 297 psRandom *myRNG1 = NULL; 292 298 myRNG1 = psRandomAlloc(PS_RANDOM_TAUS, SEED); 293 psLogSetDestination("file:seed_msglog2.txt"); 299 // psLogSetDestination("dest:stderr"); 300 psLogSetDestination(0); 294 301 psRandomReset(myRNG1,0); 295 psLogSetDestination("dest:stderr"); 302 // psLogSetDestination("dest:stderr"); 303 psLogSetDestination(2); 296 304 psFree(myRNG1); 297 305
Note:
See TracChangeset
for help on using the changeset viewer.
