Hacker News new | past | comments | ask | show | jobs | submit login

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



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: