* 获取随机的交易类型 */
| 48 | * 获取随机的交易类型 |
| 49 | */ |
| 50 | int 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 | |
| 58 | class PressureTest: public SysTestBase { |
| 59 | public: |