<p>It shouldn't, otherwise it would indicate a weakness in the generation of the addresses. The vanitygen should initialize itself with a random private key number each run, otherwise it would be really easy to generate an exact same vanity address someone else generated.</p>

CC BY-SA 3.0
2012-04-27T07:27:38.293Z
2012-04-27T07:27:38.293Z
ThePiachu
<p><strong>tl;dr</strong> If you stop vanitygen for 5 minutes, on average you've added 5 minutes to the time it will take to complete.</p>

<p>While it is running, vanitygen tells you how much longer it will take until you have a 50% chance of finding a suitable address.  About half the time, that countdown will reach zero, and then the countdown starts again, but this time showing the time until you have a 75% chance.  And so on.</p>

<p>This gives the impression that it is making "progress" towards finding a suitable address, but that is misleading.  Every second that vanitygen is running is has a certain chance of finding an address.  There's no progress being made, in the same way that you don't "make progress" towards winning the lottery if you play it every week.  Just eventually if you play enough times, you win.</p>

<p>So if you stop the program running and start it again, you've lost nothing other than that you've wasted the time between stopping and restarting when it could have found a solution.</p>

CC BY-SA 3.0
2012-04-28T19:02:45.213Z
WTF why would one show a countdown for such a process...
CodesInChaos
CC BY-SA 3.0
2012-04-29T02:02:42.003Z
@CodeInChaos Because it gives the user a vague idea of how long the search is likely to take.  If it says "12 years until 50% chance" then you're likely to immediately abort and try an easier search, whereas if it says "12 minutes until 50% chance" you'll likely leave it running, even if it hasn't succeeded after an hour.
Chris Moore
CC BY-SA 3.0
2012-04-29T08:59:30.757Z
Displaying "12 years until 50% chance" is perfectly fine. Counting down is not.
CodesInChaos
CC BY-SA 3.0
2012-04-29T17:03:48.657Z
OK, I understand, and that's a good point.  Since no progress is ever made, the expected time remaining is always the same, until a solution is found.
Chris Moore
CC BY-SA 3.0
2012-08-17T22:31:54.070Z
You might even get an extra 2 or 3 hashes per second if it stopped bothering to count down and only showed an "expected time remaining" or "expected hashes remaining". Of course, on anything even approaching modern hardware, that doesn't mean much.
Daniel H
CC BY-SA 3.0
2012-08-20T23:09:00.920Z
I think CodesInChaos's point was that it's inaccurate to count down rather than being wasteful.  But yeah, it's very slightly wasteful too.
Chris Moore
CC BY-SA 3.0
2012-04-28T04:21:00.250Z
2012-04-28T04:21:00.250Z
Chris Moore
<p>I want to generate a bitcoin address.
 <ol><li>I start vanitygen, but a power loss occurs.</li>
 <li>Now I restart vanitygen.</li></ol>
How does this affect the time to generate the address?</p>

<vanity-address>
Does it take longer to generate an address when I stop and restart vanitygen?
hmundt
# Does it take longer to generate an address when I stop and restart vanitygen?

(Asked by: username_0 on 2012-04-27)

I want to generate a bitcoin address.

1. I start vanitygen, but a power loss occurs.
2. Now I restart vanitygen.

How does this affect the time to generate the address?

**Tags:** vanity-address


---

## 2 answers

### Answer by username_2 on 2012-04-28. Score: 9 | Accepted answer

**tl;dr** If you stop vanitygen for 5 minutes, on average you've added 5 minutes to the time it will take to complete.

While it is running, vanitygen tells you how much longer it will take until you have a 50% chance of finding a suitable address. About half the time, that countdown will reach zero, and then the countdown starts again, but this time showing the time until you have a 75% chance. And so on.

This gives the impression that it is making "progress" towards finding a suitable address, but that is misleading. Every second that vanitygen is running is has a certain chance of finding an address. There's no progress being made, in the same way that you don't "make progress" towards winning the lottery if you play it every week. Just eventually if you play enough times, you win.

So if you stop the program running and start it again, you've lost nothing other than that you've wasted the time between stopping and restarting when it could have found a solution.

> **Comments:**
> **username_3**: WTF why would one show a countdown for such a process...  
> **username_2**: @CodeInChaos Because it gives the user a vague idea of how long the search is likely to take.  If it says "12 years until 50% chance" then you're likely to immediately abort and try an easier search, whereas if it says "12 minutes until 50% chance" you'll likely leave it running, even if it hasn't succeeded after an hour.  
> **username_3**: Displaying "12 years until 50% chance" is perfectly fine. Counting down is not.  
> **username_2**: OK, I understand, and that's a good point.  Since no progress is ever made, the expected time remaining is always the same, until a solution is found.  
> **username_4**: You might even get an extra 2 or 3 hashes per second if it stopped bothering to count down and only showed an "expected time remaining" or "expected hashes remaining". Of course, on anything even approaching modern hardware, that doesn't mean much.  
> **username_2**: I think username_3's point was that it's inaccurate to count down rather than being wasteful.  But yeah, it's very slightly wasteful too.  

---

### Answer by username_1 on 2012-04-27. Score: 5

It shouldn't, otherwise it would indicate a weakness in the generation of the addresses. The vanitygen should initialize itself with a random private key number each run, otherwise it would be really easy to generate an exact same vanity address someone else generated.


---

