Generating unique ids in Mnesia

Gaspar Chilingarov nm@REDACTED
Thu Aug 18 17:36:44 CEST 2005


Joel Reymont wrote:
> Only if I can convert it to a number. Think generating session ids  for 
> a browser.
> 

what about term_to_binary() and converting binary to ascii presentation? :)

4> io:format("~p~n" , [term_to_binary(erlang:make_ref())]).
<<131,114,0,3,100,0,13,110,111,110,111,100,101,64,110,111,104,111,115,116,0,0,0,0,62,0,0,0,0,0,0,0,0>>


probably there is better way to convert to ascii value :)


-- 
Gaspar Chilingarov
System Administrator

t +37491 419763 (mob)
t +37410 240399 (office)
w www.web.am
i 63174784
e nm@REDACTED



More information about the erlang-questions mailing list