]> git.sesse.net Git - ccbs/commitdiff
Change initial seeding from alphabetical to random.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 12 Jun 2005 20:25:18 +0000 (20:25 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 12 Jun 2005 20:25:18 +0000 (20:25 +0000)
html/do-start-round.pl

index 36844233cc019663b6f8b06cfb813345e09a6371..ff02c26a62a6d4b85582b52f8cce8e1ef1960afb 100755 (executable)
@@ -34,7 +34,7 @@ if ($num_groups == 1) {
 # Seed people into groups (quite preliminary for now)
 my $people;
 if ($round == 1) {
-       $people = ccbs::db_fetch_all($dbh, 'SELECT * FROM players WHERE player IN ( SELECT player FROM tournamentparticipation WHERE tournament=? ) ORDER BY lower(nick)',
+       $people = ccbs::db_fetch_all($dbh, 'SELECT * FROM players WHERE player IN ( SELECT player FROM tournamentparticipation WHERE tournament=? ) ORDER BY random()',
                $tournament);
 } else {
        # First of all, check that there are no null values!