-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
V0.7.12 actix-web::ws can not run in arm-linux #545
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
Comments
i dont know how to fix this. @DoumanAsh any ideas? |
@lygz5016 Are you use we cannot use at least EntropyRng? Disregard that, I looked at source code for I feel like it is strange that it is not possible to use it on your system since it is still Linux with |
This PR might help with such issues rust-random/rand#579 It would allow user to set own source of entropy. |
@DoumanAsh I tried to use EntropyRng, but it still can't work. The use of OsRng is blocked. So I can only use I don't think we should get away from using |
I think it might be worth asking from |
This is a very strange question. I'm not sure if it's a system cause, and it could not initialize without an entropy source. |
It would explain the OsRng problem, but EntropyRng is intended to work on common systems as guaranteed way to initialize random(when HW's random fails you) In any case I would prefer to not move away from thread_rng itself, I'll try to check |
@DoumanAsh can we do anything? |
I think we cannot unless random's author will tell that |
@DoumanAsh thanks |
The run error message:
thread 'main' panicked at 'could not initialize thread_rng: All entropy sources failed (permanently unavailable); cause: OS RNG not yet seeded (not ready yet); cause: Resource temporarily unavailable (os error 11)'
Where thread_rng is used in the source code:
let mask = rand::random::<u32>();
let sec_key: [u8; 16] = rand::random();
Only use ReadRng on my target(arm-unknown-linux-gnueabi):
let mut rng = read::ReadRng::new(std::fs::File::open("/dev/urandom").unwrap());
The text was updated successfully, but these errors were encountered: