Home
last modified time | relevance | path

Searched refs:GetRandom (Results 1 – 2 of 2) sorted by relevance

/openthread-2.7.6/tests/unit/
Dtest_spinel_buffer.cpp888 uint32_t GetRandom(uint32_t max) in GetRandom() function
916 byte = static_cast<uint8_t>(GetRandom(256)); in WriteRandomFrame()
997 shouldRead = (GetRandom(100) < kReadProbability); in TestFuzzBuffer()
1018 uint32_t len = GetRandom(kMaxFrameLen) + 1; in TestFuzzBuffer()
1021 if (GetRandom(100) < kHighPriorityProbability) in TestFuzzBuffer()
Dtest_hdlc.cpp594 uint32_t GetRandom(uint32_t max) in GetRandom() function
618 length = static_cast<uint16_t>(GetRandom(kMaxFrameLength)); in TestFuzzEncoderDecoder()
623 frame[i] = static_cast<uint8_t>(GetRandom(256)); in TestFuzzEncoderDecoder()