Created
December 21, 2015 21:48
-
-
Save vans163/c99ccb739a800f451541 to your computer and use it in GitHub Desktop.
Erlang random mac address
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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