Random generation with checksum
The tool generates 128 or 256 bits of entropy using the browser's secure random API. It then computes a SHA-256 hash, takes the first 4 or 8 bits as a checksum, and appends them to the entropy. The resulting bit string is split into 11-bit groups, each mapped to a word from the 2048-word BIP-39 English list. The last word is derived from both the entropy and the checksum bits together; it is not independent of the entropy.