Skip to content
Snippets Groups Projects
Select Git revision
  • experimental default protected
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • experimental-2025-05-18
  • experimental-2025-05-18-base
  • experimental-2025-05-15
  • experimental-2025-05-15-base
  • experimental-2025-05-13
  • experimental-2025-05-13-base
  • experimental-2025-05-08
  • experimental-2025-05-08-base
  • experimental-2025-05-05
  • experimental-2025-05-05-base
  • experimental-2025-05-02
  • experimental-2025-05-02-base
  • experimental-2025-05-01
  • experimental-2025-05-01-base
  • experimental-2025-04-29
  • experimental-2025-04-29-base
  • experimental-2025-04-27
  • experimental-2025-04-27-base
  • experimental-2025-04-26
  • experimental-2025-04-26-base
40 results

autoupdater

Blame
    • Jan-Philipp Litza's avatar
      7cdf3708
      gluon-autoupdater: get random number from urandom · 7cdf3708
      Jan-Philipp Litza authored
      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 $(())
      7cdf3708
      History
      gluon-autoupdater: get random number from urandom
      Jan-Philipp Litza authored
      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 $(())