Hacker News new | ask | show | jobs
by Exuma 2422 days ago
Does this work with OSX? Its 5 years since the last update...
2 comments

Had this alias for years and it still works:

    alias random-mac='openssl rand -hex 6 | sed '\''s/\(..\)/\1:/g; s/.$//'\'' | xargs sudo ifconfig en0 ether'
Awesome, so does that change the permanent mac address that comes with the laptop, and it is forever gone? Or does it somehow "reset" when you restart, and you rerun this command multiple times
It resets when you turn the NIC on and off, I believe.
Yes it still works.