MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetRandTxType

Function GetRandTxType

src/tests/pressure_tests.cpp:50–56  ·  view source on GitHub ↗

* 获取随机的交易类型 */

Source from the content-addressed store, hash-verified

48 * 获取随机的交易类型
49 */
50int GetRandTxType() {
51 unsigned char cType;
52 RAND_bytes(&cType, sizeof(cType));
53 //srand(time(NULL));
54 int iIndex = cType % 4;
55 return iIndex + 1;
56}
57
58class PressureTest: public SysTestBase {
59public:

Callers 1

CreateRandTxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected