mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
* refactor: add tr_rand_obj() There are a lot of places in the codebase where we need to populate an integral type or a fixed-size array with random data. To do this, we instantiate a local on the stack, fill it with tr_rand_buffer(), and then use it. This PR creates a helper function to make this a one-liner.