7cdf3708f0
The approach with awk's rand() wasn't really random between across devices: When srand() was called without arguments, time() was used as seed, which of course is the same on all devices when the script is called via cron at HH:00:00. This patch instead uses /dev/urandom as source of random (we don't need cryptographically strong random numbers, so urandom is just fine) but still uses awk for the comparison as busybox's ash cannot deal with floats in $(()) |
||
---|---|---|
.. | ||
gluon-alfred | ||
gluon-autoupdater | ||
gluon-config-mode | ||
gluon-core | ||
gluon-cron | ||
gluon-ebtables | ||
gluon-ebtables-filter-multicast | ||
gluon-ebtables-filter-ra-dhcp | ||
gluon-location | ||
gluon-lock-password | ||
gluon-luci-admin | ||
gluon-luci-autoupdater | ||
gluon-mesh-batman-adv | ||
gluon-mesh-vpn-fastd | ||
gluon-next-node | ||
gluon-radvd | ||
gluon-release | ||
gluon-simple-tc |