[erlang-questions] binary to bigint?

Jakob Cederlund <>
Tue Aug 7 17:31:45 CEST 2007

In crypto you also have rand_uniform/2 which accepts large integers, and 
mpint/1 that converts from binary form.


Jim McCoy wrote:
> After bouncing through the various bits of doc related to io_lib I
> can't quite seem to put together a quick function that will convert an
> arbitrary binary to a big int (e.g. I want the integer for
> crypto:rand_bytes(40)...)
> Any hints?
> jim
> _______________________________________________
> erlang-questions mailing list
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list