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

Supprt VxWorks #920

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Supprt VxWorks #920

wants to merge 2 commits into from

Conversation

BaoshanPang
Copy link

No description provided.

@BaoshanPang
Copy link
Author

BaoshanPang commented Dec 11, 2019

These test failures seem not related to my change.

@@ -432,3 +435,32 @@ mod fuchsia {
fn zx_cprng_draw(buffer: *mut u8, length: usize);
}
}

#[cfg(target_os = "vxworks")]
Copy link
Author

Choose a reason for hiding this comment

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

The supporting for VxWorks have been added in crate getrandom. The code here is copied from https://github.com/rust-random/getrandom/blob/master/src/vxworks.rs.

@briansmith
Copy link
Owner

Because we switched to using getrandom, it is now very easy to add vxworks support. Just add it to the list of supported operating systems in rand.rs and Cargo.toml.

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