[Scummvm-cvs-logs] SF.net SVN: scummvm:[46618] scummvm/trunk/test/common/algorithm.h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Dec 27 12:05:22 CET 2009


Revision: 46618
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46618&view=rev
Author:   lordhoto
Date:     2009-12-27 11:05:22 +0000 (Sun, 27 Dec 2009)

Log Message:
-----------
Use some pseudo random numbers in test_container_sort.

Modified Paths:
--------------
    scummvm/trunk/test/common/algorithm.h

Modified: scummvm/trunk/test/common/algorithm.h
===================================================================
--- scummvm/trunk/test/common/algorithm.h	2009-12-27 10:47:34 UTC (rev 46617)
+++ scummvm/trunk/test/common/algorithm.h	2009-12-27 11:05:22 UTC (rev 46618)
@@ -55,7 +55,7 @@
 
 		Common::List<Item> list;
 		for(int i = 0; i < n; ++i)
-			list.push_back(Item(i));
+			list.push_back(Item(i * 0xDEADBEEF % 1337));
 
 		Common::sort(list.begin(), list.end(), ItemCmp());
 		checkSort(list.begin(), list.end(), ItemCmp());


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list