<p>If I was writing wallet software I would use <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" rel="nofollow noreferrer">BIP 39</a> for generating private keys from seed phrases.</p>

<p>Generally I would use standard algorithms (as defined in the BIPs) and standard libraries rather than invent my own.</p>

<p>You avoid generating duplicate keys by using sufficient numbers of words from carefully prepared lists of words and using publicly vetted algorithms carefully designed for the purpose. For example hashing algorithms are designed to minimise the chance of "collisions" (two different sources producing same result).</p>

<p>Choosing a large number of seed words using a properly initialized random number generator should minimise the chances of two users generating the same seed phrase.</p>

CC BY-SA 4.0
2018-10-15T22:45:11.087Z
thanks, but it may that two standard bip generate same private key, true?
R_Jalaei
CC BY-SA 4.0
2018-10-15T12:38:57.217Z
2018-10-15T12:38:57.217Z
RedGrittyBrick
<p>I want to create new own wallet without using ready wallet. But there are random generator that create random number and then private key builds from it. How I can realize that there is no two equal private key in the world?</p>

<wallet>
How i can create new wallet
R_Jalaei
# How i can create new wallet

(Asked by: username_0 on 2018-10-15)

I want to create new own wallet without using ready wallet. But there are random generator that create random number and then private key builds from it. How I can realize that there is no two equal private key in the world?

**Tags:** wallet


---

## 1 answers

### Answer by username_1 on 2018-10-15. Score: 0 | Accepted answer

If I was writing wallet software I would use [BIP 39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) for generating private keys from seed phrases.

Generally I would use standard algorithms (as defined in the BIPs) and standard libraries rather than invent my own.

You avoid generating duplicate keys by using sufficient numbers of words from carefully prepared lists of words and using publicly vetted algorithms carefully designed for the purpose. For example hashing algorithms are designed to minimise the chance of "collisions" (two different sources producing same result).

Choosing a large number of seed words using a properly initialized random number generator should minimise the chances of two users generating the same seed phrase.

> **Comments:**
> **username_0**: thanks, but it may that two standard bip generate same private key, true?  

---

