// -*- c-basic-offset: 4 -*- #ifndef CLICK_RANDOMSEED_HH #define CLICK_RANDOMSEED_HH #include CLICK_DECLS /* =c RandomSeed([SEED]) =s control sets random seed =d RandomSeed sets the random seed to the SEED argument. If not supplied, the random seed is set to a truly random value. =h seed write-only Write this handler to reset the random seed, either to a particular value or (if you supply an empty argument) randomly. */ class RandomSeed : public Element { public: RandomSeed(); ~RandomSeed(); const char *class_name() const { return "RandomSeed"; } int configure_phase() const { return CONFIGURE_PHASE_LAST; } bool can_live_reconfigure() const { return true; } int configure(Vector&, ErrorHandler*); void add_handlers(); }; CLICK_ENDDECLS #endif