# operator==(std::philox_engine)

> C++ Atlas: `cppatlas.com/w/cpp/numeric/random/philox_engine/operator_cmp` | Source: https://en.cppreference.com/w/cpp/numeric/random/philox_engine/operator_cmp | Domain: Numerics | Standards: C++26

Compares two pseudo-random number engines. Two engines are equal, if their internal states are equivalent, that is, if they would generate equivalent values for any number of calls of operator().

## Official Specification Summary (cppreference)

```cpp
friend bool operator==( const philox_engine& lhs, const philox_engine& rhs ); // (since C++26)
```

Compares two pseudo-random number engines. Two engines are equal, if their internal states are equivalent, that is, if they would generate equivalent values for any number of calls of `operator()`.

This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when `decltype(*this)` is an associated class of the arguments.

The `!=` operator is synthesized from `operator==`.

### Parameters

- `lhs, rhs` - engines to compare

### Return value

`true` if the engines are equal, `false` otherwise.

---
Attribution: content from https://en.cppreference.com/w/cpp/numeric/random/philox_engine/operator_cmp (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.