Lines Matching refs:bytes
13 // Currently, that means the bytes cannot be all the same (e.g. all zeros).
14 bool IsTrivial(const std::string& bytes) {
15 for (size_t i = 0; i < bytes.size(); i++) {
16 if (bytes[i] != bytes[0]) {
24 std::string bytes(16, '\0');
25 crypto::RandBytes(WriteInto(&bytes, bytes.size()), bytes.size());
26 EXPECT_TRUE(!IsTrivial(bytes));