<<  >> (p.419)
    Author Topic: Bitcoin puzzle transaction ~32 BTC prize to who solves it  (Read 351085 times)
    nomachine
    Full Member
    ***
    Offline Offline

    Activity: 756
    Merit: 114


    View Profile
    March 28, 2025, 09:44:50 PM
    Last edit: March 29, 2025, 06:12:43 AM by nomachine
     #8361

    Random number generation fails later

    Random mode doesn't need saving  to file. I'll remove this option very soon because it's an anomaly.


    Look at the numbers, they stay the same later at the same values. That's the problem.

    The current code uses a combination of thread ID and time for seeding, but if multiple threads start at nearly the same time, they might get identical seeds.

    The random seed is being reinitialized with the current time in nanoseconds (std::chrono::high_resolution_clock::now())

    When saving/loading progress in random mode, multiple saves can occur within the same nanosecond.

    I will replace the current ThreadRNG initialization.

    Done....
    Quote
    Progress Save #1 at 20.0001 sec: TotalChecked=562725504, ElapsedTime=00:00:15, Mkeys/s=37.51
    Thread Key 0: 000000000000000000000000000000000000000000000000000000D70F4FFDCD
    Thread Key 1: 000000000000000000000000000000000000000000000000000000BE20EF4E22
    Thread Key 2: 000000000000000000000000000000000000000000000000000000E6FBE038F1
    Thread Key 3: 00000000000000000000000000000000000000000000000000000085B6EE1A44
    Thread Key 4: 000000000000000000000000000000000000000000000000000000DC3EF0E60B
    Thread Key 5: 000000000000000000000000000000000000000000000000000000A642129164
    Thread Key 6: 000000000000000000000000000000000000000000000000000000827ECA4F43
    Thread Key 7: 000000000000000000000000000000000000000000000000000000CFFDF45C8B
    Thread Key 8: 000000000000000000000000000000000000000000000000000000E6505F7635
    Thread Key 9: 00000000000000000000000000000000000000000000000000000081F1DBAE4A
    Thread Key 10: 000000000000000000000000000000000000000000000000000000906C35E1C9
    Thread Key 11: 000000000000000000000000000000000000000000000000000000A602C29DA6

    Progress Save #2 at 40.0001 sec: TotalChecked=1248416640, ElapsedTime=00:00:35, Mkeys/s=35.66
    Thread Key 0: 000000000000000000000000000000000000000000000000000000FB80C3A22D
    Thread Key 1: 000000000000000000000000000000000000000000000000000000A1F08AD161
    Thread Key 2: 000000000000000000000000000000000000000000000000000000DCBA47622C
    Thread Key 3: 000000000000000000000000000000000000000000000000000000B11640B862
    Thread Key 4: 000000000000000000000000000000000000000000000000000000D98BA3DC28
    Thread Key 5: 000000000000000000000000000000000000000000000000000000BFEC23CC1C
    Thread Key 6: 000000000000000000000000000000000000000000000000000000EC3C75E919
    Thread Key 7: 00000000000000000000000000000000000000000000000000000085EE1FB309
    Thread Key 8: 000000000000000000000000000000000000000000000000000000922880EA8B
    Thread Key 9: 000000000000000000000000000000000000000000000000000000E096061943
    Thread Key 10: 000000000000000000000000000000000000000000000000000000A03AE42AB4
    Thread Key 11: 000000000000000000000000000000000000000000000000000000FA1B55C229

    BTC: bc1qdwnxr7s08xwelpjy3cc52rrxg63xsmagv50fa8
Page 418
Viewing Page: 419