Skip to content

Instantly share code, notes, and snippets.

@solson
Created October 13, 2009 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solson/208947 to your computer and use it in GitHub Desktop.
Save solson/208947 to your computer and use it in GitHub Desktop.
[/home/scott]$ time ./random.rb
Thu Sep 25 04:13:46 -0600 2008
�<w�=0`������$u�c��7�!�@�=�9��U�P|Tآ�"�H��϶E9 �<Y�טTO��dȐv���Y�ĝ��p˵UW�+�F[scott�fDZܪ�K*�����u����Pge�j&n�4�~ѹ(
real 2073m13.828s
user 74m4.440s
sys 1808m39.267s
[/home/scott]$ cat ./random.rb
#!/usr/bin/env ruby
urand = open('/dev/urandom', 'r')
while line = urand.readline
if /scott/.match(line)
puts Time.now.to_s, line
exit
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment