Bitcoin Forum
May 01, 2024, 05:04:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how random privkey vanitygen modification  (Read 185 times)
directoryio (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 31, 2018, 01:34:02 PM
 #1

Hello I don't usually program in C so I have a big problem:
here is a code portion that allows vanitygen to start searching patterns from a specific private key

  privkey[0]=0;
  privkey[1]=0;
  privkey[2]=0;
  privkey[3]=be64(2);

which gives 0000000000000000 for privkey[0]=0
                    0000000000000000 for privkey[1]=0
                    0000000000000000 for privkey[2]=0
                    0000000000000003 for privkey[3]=be64(2)

either 00000000000000000000000000000000000000000000000000000000000000000003

how to make privkey[3]=be64(2) RANDOM? in C

thanks.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!