<commit_before>/****************************************************************/
/*               DO NOT MODIFY THIS HEADER                      */
/* MOOSE - Multiphysics Object Oriented Simulation Environment  */
/*                                                              */
/*           (c) 2010 Battelle Energy Alliance, LLC             */
/*                   ALL RIGHTS RESERVED                        */
/*                                                              */
/*          Prepared by Battelle Energy Alliance, LLC           */
/*            Under Contract No. DE-AC07-05ID14517              */
/*            With the U. S. Department of Energy               */
/*                                                              */
/*            See COPYRIGHT for full restrictions               */
/****************************************************************/

#include "Moose.h"
#include "RandomInterface.h"
#include "FEProblem.h"
#include "Assembly.h"
#include "MooseMesh.h"

const unsigned int MASTER = std::numeric_limits<unsigned int>::max();

template<>
InputParameters validParams<RandomInterface>()
{
  InputParameters params = emptyInputParameters();
  params.addParam<unsigned int>("seed", 0, "The seed for the master random number generator");
  return params;
}

RandomInterface::RandomInterface(InputParameters & parameters, FEProblem & problem, THREAD_ID tid, bool is_nodal) :
    _ri_problem(problem),
    _ri_assembly(problem.assembly(tid)),
    _ri_mesh(problem.mesh()),
    _ri_tid(tid),
    _master_seed(parameters.get<unsigned int>("seed")),
    _is_nodal(is_nodal),
    _current_master_seed(0),
    _reset_on(EXEC_RESIDUAL),
    _curr_node(_ri_assembly.node()),
    _curr_element(_ri_assembly.elem())
{
}

RandomInterface::~RandomInterface()
{
}
<commit_msg>Moving the seed parameter under "Advanced" - refs #2088<commit_after>/****************************************************************/
/*               DO NOT MODIFY THIS HEADER                      */
/* MOOSE - Multiphysics Object Oriented Simulation Environment  */
/*                                                              */
/*           (c) 2010 Battelle Energy Alliance, LLC             */
/*                   ALL RIGHTS RESERVED                        */
/*                                                              */
/*          Prepared by Battelle Energy Alliance, LLC           */
/*            Under Contract No. DE-AC07-05ID14517              */
/*            With the U. S. Department of Energy               */
/*                                                              */
/*            See COPYRIGHT for full restrictions               */
/****************************************************************/

#include "Moose.h"
#include "RandomInterface.h"
#include "FEProblem.h"
#include "Assembly.h"
#include "MooseMesh.h"

const unsigned int MASTER = std::numeric_limits<unsigned int>::max();

template<>
InputParameters validParams<RandomInterface>()
{
  InputParameters params = emptyInputParameters();
  params.addParam<unsigned int>("seed", 0, "The seed for the master random number generator");

  params.addParamNamesToGroup("seed", "Advanced");
  return params;
}

RandomInterface::RandomInterface(InputParameters & parameters, FEProblem & problem, THREAD_ID tid, bool is_nodal) :
    _ri_problem(problem),
    _ri_assembly(problem.assembly(tid)),
    _ri_mesh(problem.mesh()),
    _ri_tid(tid),
    _master_seed(parameters.get<unsigned int>("seed")),
    _is_nodal(is_nodal),
    _current_master_seed(0),
    _reset_on(EXEC_RESIDUAL),
    _curr_node(_ri_assembly.node()),
    _curr_element(_ri_assembly.elem())
{
}

RandomInterface::~RandomInterface()
{
}

{'fraction_non_alphanumeric': 0.17143628509719222, 'fraction_numerical': 0.0091792656587473, 'mean_word_length': 2.0368852459016393, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4995626', 'n_tokens_mistral': 939, 'n_tokens_neox': 886, 'n_words': 205}