Home | History | Annotate | Download | only in functional

Lines Matching full:rnd

75 void getSimpleRndString (vector<char>& dst, de::Random& rnd, int maxLen)
79 dst.resize(rnd.getInt(0, (int)maxLen));
82 dst[ndx] = rnd.choose<char>(DE_ARRAY_BEGIN(s_chars), DE_ARRAY_END(s_chars));
85 void getComplexRndString (vector<char>& dst, de::Random& rnd, int maxLen)
87 dst.resize(rnd.getInt(0, (int)maxLen));
90 dst[ndx] = (char)rnd.getUint8();
120 de::Random rnd (0xaf829c0);
124 const CallType callType = CallType(rnd.getInt(0, CALL_TYPE_LAST-1));
128 const bool nullTerminate = rnd.getBool();
129 const bool passLength = rnd.getBool();
130 const bool complexMsg = rnd.getBool();
134 getComplexRndString(message, rnd, maxMsgLen);
136 getSimpleRndString(message, rnd, maxMsgLen);