Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: Collection of 18.509 found and used Brainwallets
by
almightyruler
on 07/02/2019, 05:50:41 UTC
⭐ Merited by ETFbitcoin (2)
Plus, even with a list of valid word combinations, it's a fools game in terms of odds.

May as well just generate random private keys then. Smiley

Code:
// output random hex digits as a 256 bit priv key

#include
#include
#include
#include
#include

uint64_t timeuseconds() {
        struct  timeval thistime;

        gettimeofday(&thistime, NULL);
        return((thistime.tv_sec * 1000000) + (thistime.tv_usec % 1000000));
}

int main() {

        int i;

        srandom(timeuseconds() );

        while (1)
        {
                for (i = 0; i < 16; i++)
                {
                        printf("%04lx", random() & 0xffff);
                }
                printf("\n");
        }
}

Although this program seems silly, it was done for a purpose: to check the false positive rate of brainflayer.