You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shuffle the input array for netdisco-sshcollector. This helps to make it less likely when running multiple collectors on different devices targeting diffrent devices that they will end up stepping on each other.
sub main {
my @input = @{ setting('sshcollector') };
#one-line Fisher-Yates from https://www.perlmonks.org/index.pl?node=Array%20One-Liners
my ($i,$j) = (0);
@input[-$i,$j] = @input[$j,-$i] while $j = rand(@input - $i), ++$i < @input;
The text was updated successfully, but these errors were encountered:
Shuffle the input array for netdisco-sshcollector. This helps to make it less likely when running multiple collectors on different devices targeting diffrent devices that they will end up stepping on each other.
The text was updated successfully, but these errors were encountered: