Port rand to CloudABI.#224
Conversation
|
I suspec that the test failure is not caused by this change specifically. Probably something wrong with the build environment? |
|
Cargo not found. I've seen that before; it seems Travis just fails sometimes. Restarted that build. I don't know anything about CloudABI. Is there some way we can test code for this platform? |
|
Hey! Thanks for responding so quickly! CloudABI is a strongly sandboxed UNIX-like runtime environment. Right now there is native support for running these executables on FreeBSD, experimental native support for Linux and NetBSD, and a userspace emulator that works on virtually any operating system out there (e.g., macOS). Right now I'm still working on getting support for CloudABI integrated into Rust properly. I stumbled upon this build failure, because libstd (as built by In the meantime I am building a Docker container image that can be used to do automated tests for the main Rust codebase. I suspect that we may be able to reuse something like this to also run tests for |
|
Well, this certainly sounds like an interesting project! I believe libstd has an internal copy of |
|
That's right. It looks like it's not that I guess it makes sense to merge this change both to |
|
Yes, that makes sense. This is going to conflict with #225; I can sort that out though. |
|
#225 is now merged, could you please update this with compatible error-handling? |
CloudABI has a special system call, random_get(), that can be used to obtain random data from the environment (the kernel, emulator, etc). We can invoke this system call by making use of the cloudabi crate.
|
Done! \o/ |
CloudABI has a special system call, random_get(), that can be used to
obtain random data from the environment (the kernel, emulator, etc). We
can invoke this system call by making use of the cloudabi crate.