Simplex noise rewritten in C & FFI