Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********************
- * v7miner-test.cpp *
- ********************/
- #include <conio>
- #include <random>
- #include <iomanip>
- #include <iostream>
- // Get miner seeds as header from pastebin.com/ih1TdNtX
- #include "v7miner(0x000f).h"
- using namespace std;
- // common 52-char ascii table (upper+lowercase letters)
- const char TABLE[52]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
- //*******************************
- // mt19937 Mersenne Twister PRNG
- // random generator engine C++11
- //*******************************
- mt19937 generator(seed); // 32-bit, use mt19937_64 type for 64-bit seeds
- uniform_int_distribution<int> distribution(1,52); // num range 1..52
- #define seedhex(x) setfill('0')<<setw(8)<<uppercase<<hex<<(unsigned long)(x)
- // mined blocksize is 4096 bytes per seed, test shows the first 64 chars only.
- #define BLOCKSIZE 64
- void V7_Generator(unsigned long randseed)
- {
- int ti = 1; /* table id (default = 1) */
- cout << "[" << seedhex(randseed) << "] ";
- for (int n=0; n<BLOCKSIZE; n++) {
- ti = distribution(generator(randseed));
- cout << TABLE[ti];
- }
- cout << endl;
- getch();
- }
- int main()
- {
- int i;
- cout << "v7miner-test v0.3.20171002 [DA2K] Reptor" <<endl;
- cout << "Seeds: "<< seeds << " GS: " << gs << " VS: " << vs <<endl<<endl;
- cout << "*ACCEPTED*" <<endl;
- for (i=0; i<seeds; i++) { V7_Generator(V7_Mine[i]); }
- cout << "*GOLDMINE*" <<endl;
- for (i=0; i<gs; i++) { V7_Generator(V7_Goldmine[i]); }
- cout << "**VAULTS**" <<endl;
- for (i=0; i<vs; i++) { V7_Generator(V7_Vault[i]); }
- cout << "[END]";
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement