Skip to content

Conversation

@zjma
Copy link
Collaborator

@zjma zjma commented Mar 5, 2025

Description

Update the invariant of a test-only function rand_big.

What is the change being pushed?

rand_big() was commented to take a non-negative x as input,
while it should assume x is a positive integer.
Calling this out in the function comment.

Why are you pushing this change?

The current comment is misleading.

How is this implemented?

Comments are updated.

Type of Change

Tiny refactoring.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all keyless stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

@zjma zjma changed the title Update rang_big() invariant Update rang_big() precondition Mar 5, 2025
@rex1fernando rex1fernando changed the title Update rang_big() precondition Update rand_big() precondition Mar 18, 2025
@zjma zjma enabled auto-merge (squash) August 26, 2025 17:04
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.

3 participants