Mostly out of curiosity, but if you wanted to generate your own ethereum private/public key pair, and NOTE use anyone else's code, is there anything that's wrong with doing it like this:
const validChars = ["a", "b", "c", "d", "e", "f", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
let key = ""
for (var i = 0; i < 64; i++) {
let rand = validChars[Math.floor(Math.random() * validChars.length)];
key += rand
}
//key is now a random string of 64 valid ETH characters
console.log(key)