rust-vmm / vmm-sys-util

Helpers and utilities used by multiple rust-vmm components and VMMs
BSD 3-Clause "New" or "Revised" License
78 stars 64 forks source link

rand: fix tests on big-endian machines #193

Closed slp closed 1 year ago

slp commented 1 year ago

Some methods in rand.rs use "to_ne_bytes()", which yields different results between little endian and big endian machines. We need to modify some tests to be aware of this and avoid failure on big endian machines.