Files
coredns/plugin
Ville Vesilehto 8cd0c63595 test(plugin): add tests for pkg/rand (#7320)
Add test suite covering thread-safe random number generator with
tests for:

- Constructor with various seed values (positive, zero, negative)
- Deterministic behavior verification with same seeds
- Permutation generation and validation
- Concurrent access safety with multiple goroutines
- Mixed operations under concurrent load

Also clarify package documentation to explicitly state this is
for load balancing and server selection, not cryptographic use.
The math/rand usage is intentional for performance in non-security
contexts like upstream server selection and DNS record shuffling.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-05-27 17:49:13 -07:00
..
2022-07-10 11:06:33 -07:00
2022-05-30 10:29:34 +00:00
2024-08-18 06:13:10 +02:00
2020-11-05 15:02:07 +01:00
2024-11-13 09:40:25 -08:00
2022-07-10 11:06:33 -07:00
2023-04-25 11:24:49 -04:00
2024-03-07 14:24:38 -05:00
2024-08-18 07:13:53 +02:00
2019-08-24 18:14:25 +00:00
2018-07-19 16:23:06 +01:00
2022-07-10 11:06:33 -07:00
2020-09-24 18:14:41 +02:00