Skip to content

Instantly share code, notes, and snippets.

@martian17
Last active December 27, 2021 10:17
Show Gist options
  • Save martian17/df23fb58fc73daf593374609046eb472 to your computer and use it in GitHub Desktop.
Save martian17/df23fb58fc73daf593374609046eb472 to your computer and use it in GitHub Desktop.
random mac generator
Array(6).fill(0).map(a=>("00"+Math.floor(Math.random()*256).toString(16)).substr(-2).toUpperCase()).join(":")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment