Erlang NIF to access rand48 functions