Skip to content

Instantly share code, notes, and snippets.

@vans163
Created December 21, 2015 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vans163/c99ccb739a800f451541 to your computer and use it in GitHub Desktop.
Save vans163/c99ccb739a800f451541 to your computer and use it in GitHub Desktop.
Erlang random mac address
random_mac() ->
string:join([integer_to_list(random:uniform(255), 16) || X <- [1,2,3,4,5,6]], ":").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment