[system] / trunk / webwork / system / cgi / cgi-scripts / profChangeDates.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/cgi/cgi-scripts/profChangeDates.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 152 Revision 153
536############################### 536###############################
537 537
538 538
539 my $psvn; 539 my $psvn;
540 my @psvn = &getAllProbSetKeysForSet($setNumber); 540 my @psvn = &getAllProbSetKeysForSet($setNumber);
541 srand(time);
541 foreach $psvn (@psvn) { 542 foreach $psvn (@psvn) {
542 &attachProbSetRecord($psvn); 543 &attachProbSetRecord($psvn);
543 my $num =1; 544 my $num =1;
544 srand(time); 545# srand(time); ## Move this out of the loop as per Zig's suggestion.
546 ## Otherwise many students get the same seed - AKP
545 foreach $i (@changedProblems) { 547 foreach $i (@changedProblems) {
546 548
547 ## chech if we should delete cached l2h images 549 ## chech if we should delete cached l2h images
548 if ( defined( $inputs{"problem{$i}EditMode"}) and 550 if ( defined( $inputs{"problem{$i}EditMode"}) and
549 (($inputs{"problem{$i}EditMode"} eq "ReSeed") or ($inputs{"problem{$i}EditMode"} eq "Delete"))) { 551 (($inputs{"problem{$i}EditMode"} eq "ReSeed") or ($inputs{"problem{$i}EditMode"} eq "Delete"))) {

Legend:
Removed from v.152  
changed lines
  Added in v.153

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9