--- loncom/homework/bridgetask.pm 2005/10/24 18:40:21 1.73 +++ loncom/homework/bridgetask.pm 2005/11/03 21:29:57 1.74 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.73 2005/10/24 18:40:21 albertel Exp $ +# $Id: bridgetask.pm,v 1.74 2005/11/03 21:29:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -382,6 +382,9 @@ sub start_Task { &Apache::structuretags::init_problem_globals('Task'); &Apache::structuretags::initialize_storage(); &Apache::lonhomework::showhash(%Apache::lonhomework::history); + if ($env{'request.state'} eq 'construct') { + &Apache::structuretags::setup_rndseed($safeeval); + } } $Apache::lonhomework::parsing_a_task=1; @@ -389,7 +392,7 @@ sub start_Task { my ($result,$head_tag_start,$body_tag_start,$form_tag_start)= &Apache::structuretags::page_start($target,$token,$tagstack,$parstack,$parser,$safeeval); - if ($target eq 'web') { + if ($target eq 'web' && $env{'request.state'} ne 'construct') { if ($Apache::lonhomework::modifygrades) { $body_tag_start.='