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

PSA: Document the supported types T for Random extern #882

Open
jfingerh opened this issue Jul 28, 2020 · 0 comments
Open

PSA: Document the supported types T for Random extern #882

jfingerh opened this issue Jul 28, 2020 · 0 comments

Comments

@jfingerh
Copy link
Contributor

It should definitely support any type bit<W> for W ranging from 1 up to some implementation-dependent maximum width.

While there might some small convenience in supporting types int<W>, if an implementation did not support that, it would not be difficult to take a random value of type bit<W> and cast it to int<W>, perhaps performing an addition or subtracting on it to get it in the desired range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants