subdgtl / WFC

Prototype tools for playing with Wave Function Collapse
The Unlicense
5 stars 1 forks source link

FFI safety #5

Closed yanchith closed 4 years ago

yanchith commented 4 years ago

rustc 1.46 started linting against using 128 bit types as extern "C" function parameters and return values.

We were using [u8; 16] to provide the random seed. This patch splits that into two 64 bit integers. They always have to be little endian, even on big endian archs.