Charles Kerr
8a35aa0903
refactor: add tr_rand_obj() ( #4238 )
...
* 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.
2022-11-25 15:04:37 -06:00
..
2022-07-22 20:10:02 -05:00
2022-11-14 14:16:29 -06:00
2022-08-13 12:11:07 -05:00
2022-08-08 13:05:39 -05:00
2022-11-25 15:04:37 -06:00
2022-08-08 13:05:39 -05:00
2022-11-23 13:47:04 -06:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-10-19 11:42:08 -05:00
2022-11-25 15:04:37 -06:00
2022-11-12 20:01:57 +00:00
2022-11-25 15:04:37 -06:00
2022-11-14 14:16:29 -06:00
2022-11-25 15:04:37 -06:00
2022-11-14 14:16:29 -06:00
2022-11-25 15:04:37 -06:00
2022-11-15 11:16:49 -06:00
2022-08-08 13:05:39 -05:00
2022-08-08 13:05:39 -05:00
2022-11-24 10:17:02 -06:00
2022-11-14 14:16:29 -06:00
2022-11-25 15:04:37 -06:00
2022-08-08 13:05:39 -05:00
2022-11-14 14:16:29 -06:00
2022-11-25 15:04:37 -06:00
2022-11-25 15:04:37 -06:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-11-16 18:03:48 -06:00
2022-08-08 13:05:39 -05:00
2022-11-14 14:16:29 -06:00
2022-08-08 13:05:39 -05:00
2022-10-25 08:50:53 -05:00
2022-09-23 14:36:37 -05:00
2022-11-14 14:16:29 -06:00
2022-08-08 13:05:39 -05:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-11-16 18:03:48 -06:00
2022-08-17 11:08:36 -05:00
2022-08-08 13:05:39 -05:00
2021-08-16 23:16:36 +03:00
2022-11-14 14:16:29 -06:00
2022-11-25 15:04:37 -06:00
2022-11-14 18:04:15 -06:00
2022-08-08 13:05:39 -05:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-08-28 21:51:26 -05:00
2022-11-14 14:16:29 -06:00
2022-11-14 14:16:29 -06:00
2022-09-08 21:49:51 -05:00