Created
June 13, 2020 21:07
-
-
Save manniru/ad8e53280c8dbf0094e96e23b8501d3c to your computer and use it in GitHub Desktop.
NodeJS Generate Random Mac Address for Testing
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
| var mac = "XX:XX:XX:XX:XX:XX".replace(/X/g, () => { return "0123456789ABCDEF".charAt(Math.floor(Math.random() * 16)) }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment