libbitcoin / libbitcoin-system

Bitcoin Cross-Platform C++ Development Toolkit
https://libbitcoin.info/
Other
1.3k stars 383 forks source link

Does libbitcoin provide TRNG? #940

Closed GingerMoon closed 6 years ago

GingerMoon commented 6 years ago

@evoskuil libbitcoin provide pseudo_random in random.cpp, however, it's not safe because it is much easier to generate two same random numbers than using TRNG, am I right? Does libbitcoin provide TRNG?

Best Regards,

thecodefactory commented 6 years ago

@GingerMoon No, libbitcoin provides pseudo_random only, although nothing depends on it cryptographically. Everywhere it matters, your own random data must be provided.

evoskuil commented 6 years ago

Technically it depends on the underlying OS RNG, but we assume that is not a TRNG.