Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRC-0042: expand rejection sampling to numbers < 256 #434

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

anorth
Copy link
Member

@anorth anorth commented Aug 17, 2022

Expands the range of method numbers excluded by the rejection sampling mechanism to 256. This removes the possibility of collision with any existing built-in actor method number, and leaves a decent range for new actors to use for internal dispatch or other conventions.

This idea is due to @Kubuxu.

Copy link
Contributor

@Kubuxu Kubuxu left a comment

Choose a reason for hiding this comment

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

It looks correct.

@Stebalien
Copy link
Member

Can we increase this even more? I.e., reserve 0x7FFFFFFF? (or even just 0xFFFF). There's really no reason to go small here.

@jennijuju jennijuju merged commit c7fe75b into master Aug 19, 2022
@jennijuju jennijuju deleted the anorth/42-rejectionsample branch August 19, 2022 01:08
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.

None yet

4 participants