Comments (7)
download->initialize(infoHash, PEER_NAME + rak::generate_random<std::string>(20 - std::string(PEER_NAME).size()));
It seems to be doing everything correctly, and this code hasn't been touched in years. Is this something you see from one user, or does it happen with multiple users?
from libtorrent.
Haven't checked yet. How is the generator being initialized / seeded?
from libtorrent.
cachedTime = rak::timer::current();
srandom(cachedTime.usec());
srand48(cachedTime.usec());
The generate_random method uses 'random()', so without any more informatino it's difficult to figure out what's going on.
from libtorrent.
About 20 bits of entropy, that's not a lot.
And what if two processes hit that line at the same microsecond?
from libtorrent.
Added xor of the pid and ppid.
from libtorrent.
That's still just 20 bits, isn't it?
from libtorrent.
Same thing again..
A user running rtorrent on multiple systems has the same peer ID & key for both..
from libtorrent.
Related Issues (20)
- Just FYI: rTorrent Crash, 'priority_queue_erase(...) called on an invalid item.' HOT 4
- Build with/without INOTIFY HOT 1
- Regular rtorrent crashes because of DHT HOT 2
- LibTorrentTest fails to build on 13.8 due to multiple definitions. HOT 2
- Crash when rechecking torrents with missing empty files
- 0.13.8: test suite linkinmg fails with LTO
- Support for BEP52 (BitTorrent v2) HOT 1
- libtorrent: FTBFS on hurd-i386: error: 'IPV6_TCLASS' was not declared in this scope. HOT 1
- How to build libtorrent after commit 53596af? HOT 3
- Getting lots of "message:7 network error" on handshake_manager however network is fine
- 'make check' fails with missing sig_t on Solaris
- OpenSSL v3 support for libtorrent
- how to bind a callback function for specific events HOT 1
- Several branches
- New release?
- FR: ipv6 support for UDP trackers
- Commit e22c77f causes rtorrent/rutorrent to crash when setting torrent file priority to not download
- received a chunk that has already been filled
- Commit 0f957c2 breaks rtorrent IPV4 TOS setting.
- libtorrent.so 0.13.8 crash on Rasberry PI4 kernel due to unaligned access HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libtorrent.