No, I’m interested in creating a seed phrase exactly, you use BIP39 to create it. But, on the link above you sent an article and if you go to the site and read about getRandomValues() method, it uses only 32 bits of system time and you use 32 bits to create a wallet?
This is for generating child keys from an HD wallet. This does not mean we use 32 bits to create a wallet. The audit is for GitHub - MetaMask/key-tree which is a library used in MetaMask for deriving child keys. This is not how the seed phrase is created
Here’s the source https:// milksad. info
It states that the Mersenne Twister PRNG method is unreliable.
Your documentation also says you use PRNG to generate the initial phrase, I would like to know what type is used for this.
Your forum blocked me from replying for 24 hours, that’s why the wait was so long
MetaMask utilizes the browser’s PRNG, which in turn leverages the Web Crypto API. You can find more information about the Web Crypto API here.
The entropy of this PRNG is 16 bytes, equivalent to 128 bits. This means that the number of possible keys is 2^128.
To help you visualize this vast number, consider this analogy: If our Earth were a grain of sand within a much larger Earth, there would be approximately 2^80 such Earths. Now, how many grains of sand would there be in total? The answer is 2^160.
In other words, the probability of randomly generating a specific number using our PRNG is akin to finding a specific grain of sand on half of a super Earth. This super Earth is filled with super grains of sand, each of which contains a full Earth’s worth of regular grains of sand.