Skip to content
Snippets Groups Projects
  1. Jan 19, 2014
    • Jan-Philipp Litza's avatar
      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
  2. Jan 18, 2014
  3. Jan 17, 2014
  4. Jan 16, 2014
  5. Jan 14, 2014
  6. Jan 13, 2014
  7. Jan 12, 2014
  8. Jan 11, 2014
Loading