News for hackers. Stuff that matters.
Re:Myths about /dev/urandom (2014) by canhascodez on Saturday August 18, 2018 @02:16AM (#17787154)
Ruby version:

  #!/usr/bin/env ruby

  source = File.open('/dev/random', 'rb')

  loop do
    source.read(1000) unless File.read('/proc/sys/kernel/random/entropy_avail').to_i < 1500
    sleep 1
  end

There are no comments on this comment yet.