aboutsummaryrefslogtreecommitdiff
path: root/sysutils/frand/pkg-descr
blob: 42917ce9aad09ada1234ca4eedcf1c425ef749f0 (plain) (blame)
1
2
3
4
5
Selects a random file from given directory using reservoir sampling algorithm.
This means directory contents doesn't need to be read in memory and then sorted
and so will perform much better than find+sort for big directories.

WWW: https://github.com/serpent7776/frand