Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix RandomBits::is_equivalent to include width#2978

Merged
awni merged 3 commits intoml-explore:mainfrom
MillaFleurs:fix/randombits-is-equivalent-width
Jan 13, 2026
Merged

Fix RandomBits::is_equivalent to include width#2978
awni merged 3 commits intoml-explore:mainfrom
MillaFleurs:fix/randombits-is-equivalent-width

Conversation

@MillaFleurs
Copy link
Contributor

Fixes #2977

  • RandomBits::is_equivalent now includes width.
  • Adds regression test in tests/random_tests.cpp.

Copy link
Member

@angeloskath angeloskath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the find and the fix. Left a couple of minor comments.

}

TEST_CASE("RandomBits::is_equivalent must consider width") {
Stream s(0, Device::cpu); // <-- FIX: Stream has no default ctor in this repo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto s = default_stream(Device::cpu);

Co-authored-by: Angelos Katharopoulos <[email protected]>
@MillaFleurs
Copy link
Contributor Author

Thank you for the comments, changes made

@awni awni dismissed angeloskath’s stale review January 13, 2026 19:27

Feedback addressed.

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty!

@awni awni force-pushed the fix/randombits-is-equivalent-width branch from b20afc2 to 4347632 Compare January 13, 2026 19:52
@awni awni merged commit 4160ec1 into ml-explore:main Jan 13, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] RandomBits::is_equivalent() ignores width_

4 participants