[Gnucash-changes] get rid of the srand
Linas Vepstas
linas at cvs.gnucash.org
Thu Jul 8 23:13:34 EDT 2004
Log Message:
-----------
get rid of the srand
Modified Files:
--------------
gnucash/src/engine/test:
test-lots.c
Revision Data
-------------
Index: test-lots.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/test/test-lots.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -Lsrc/engine/test/test-lots.c -Lsrc/engine/test/test-lots.c -u -r1.7 -r1.8
--- src/engine/test/test-lots.c
+++ src/engine/test/test-lots.c
@@ -63,12 +63,11 @@
do_test((NULL!=gnc_module_load("gnucash/engine", 0)), "load engine");
- /* set the rng to a known starting point */
- srand(0);
-
/* Iterate the test a number of times */
- for (i=0; i< 20; i++)
+ for (i=0; i< 6; i++)
+ {
run_test ();
+ }
print_test_results();
exit(get_rv());
More information about the gnucash-changes
mailing list