diff options
author | Abseil Team <absl-team@google.com> | 2019-09-19T16·27-0700 |
---|---|---|
committer | Shaindel Schwartz <shaindel@google.com> | 2019-09-19T21·08-0400 |
commit | ddf8e52a2918dd0ccec75d3e2426125fa3926724 (patch) | |
tree | 3aa7151866a9a76bcad92467bc23cc4f25fec558 /absl/random | |
parent | 6ec136281086b71da32b5fb068bd6e46b78a5c79 (diff) |
Export of internal Abseil changes
-- cf6037b985b629c253b8a87e4408c88a61baf89a by Abseil Team <absl-team@google.com>: Adds an example of using ABSL_DEPRECATED on a template. Without this, it's unclear where to add this annotation (e.g. before template <> or after it). PiperOrigin-RevId: 270057224 -- c53bc14dd683cc1e41c940a337001b42a0270eaf by Andy Getzendanner <durandal@google.com>: Parser and unparser for command-line flags of type absl::LogSeverity. PiperOrigin-RevId: 269939999 -- d91174b02f3b213f0b26701d9d97c79f809e6fea by Abseil Team <absl-team@google.com>: Fix a typo. PiperOrigin-RevId: 269738777 GitOrigin-RevId: cf6037b985b629c253b8a87e4408c88a61baf89a Change-Id: I6cec3101014e4c77f4ff2edb4c91740982dbb459
Diffstat (limited to 'absl/random')
-rw-r--r-- | absl/random/internal/named_generator.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/absl/random/internal/named_generator.cc b/absl/random/internal/named_generator.cc deleted file mode 100644 index b168a25be2e7..000000000000 --- a/absl/random/internal/named_generator.cc +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2018 The Abseil Authors. -// -// 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 -// -// https://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 <cstddef> -#include <iostream> - -#include "absl/random/random.h" - -// This program is used in integration tests. - -int main() { - auto seed_seq = absl::MakeTaggedSeedSeq("TEST_GENERATOR", std::cerr); - absl::BitGen rng(seed_seq); - constexpr size_t kSequenceLength = 8; - for (size_t i = 0; i < kSequenceLength; i++) { - std::cout << rng() << "\n"; - } - return 0; -} |