chromium/third_party/fuzztest/src/fuzztest/internal/seed_seq.cc

// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "./fuzztest/internal/seed_seq.h"

#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <optional>
#include <ostream>
#include <random>
#include <string>
#include <utility>
#include <vector>

#include "absl/random/random.h"
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "./fuzztest/internal/logging.h"

namespace fuzztest::internal {
namespace {

std::vector<uint32_t> MakeSeedMaterial() {}

std::vector<uint32_t> GetFromEnvOrMakeSeedMaterial(absl::string_view env_var) {}

}  // namespace

std::seed_seq GetFromEnvOrMakeSeedSeq(std::ostream& out,
                                      absl::string_view env_var) {}

std::string EncodeSeedMaterial(absl::Span<const uint32_t> seed_material) {}

std::optional<std::vector<uint32_t>> DecodeSeedMaterial(
    absl::string_view seed_material) {}

}  // namespace fuzztest::internal