summaryrefslogtreecommitdiff
path: root/absl/random/internal/explicit_seed_seq.h
diff options
context:
space:
mode:
authorGravatar Milad Fa <46688537+miladfarca@users.noreply.github.com>2021-10-29 15:51:54 -0400
committerGravatar GitHub <noreply@github.com>2021-10-29 15:51:54 -0400
commit022527c50e0e2bc937f9fa3c516e3e36cbba0845 (patch)
tree43eab7650ba5506b357fd846f9d0a8cc74ac1e84 /absl/random/internal/explicit_seed_seq.h
parentcc413f8b674d61e3aa948386432e526e051afca0 (diff)
Fix Randen and PCG on Big Endian platforms (#1031)
Diffstat (limited to 'absl/random/internal/explicit_seed_seq.h')
-rw-r--r--absl/random/internal/explicit_seed_seq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/random/internal/explicit_seed_seq.h b/absl/random/internal/explicit_seed_seq.h
index e3aa31a1..25f79153 100644
--- a/absl/random/internal/explicit_seed_seq.h
+++ b/absl/random/internal/explicit_seed_seq.h
@@ -74,7 +74,7 @@ class ExplicitSeedSeq {
template <typename OutIterator>
void generate(OutIterator begin, OutIterator end) {
for (size_t index = 0; begin != end; begin++) {
- *begin = state_.empty() ? 0 : little_endian::FromHost32(state_[index++]);
+ *begin = state_.empty() ? 0 : state_[index++];
if (index >= state_.size()) {
index = 0;
}