randomseed.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 44 行

HH
44
字号
// -*- c-basic-offset: 4 -*-#ifndef CLICK_RANDOMSEED_HH#define CLICK_RANDOMSEED_HH#include <click/element.hh>CLICK_DECLS/*=cRandomSeed([SEED])=s testsets random seed=dRandomSeed sets the random seed to the SEED argument.  If not supplied, therandom seed is set to a truly random value.=h seed write-onlyWrite 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<String>&, ErrorHandler*);    void add_handlers();};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?