Brian Schröäer <ruby.brian / gmail.com> writes:

> On my machine:
> $ uname -a
> Linux silver.wg 2.6.9silver #1 Mon Jan 10 14:43:04 CET 2005 i686 GNU/Linux
> $ ruby -v
> ruby 1.8.2 (2005-01-10) [i386-linux]
>
> That evaluates to:
> $ ruby -e 'srand 52019;puts"Azzp!bljqkmw!Xrfy!nmgaiq!".
> unpack(%q(c*)).map{|x|x^rand(16)}.pack("c*")'
> Gwvz&baf|ej}%T{a|.ikhbcw)
>
> And I thought it was about obfuscating the code, not the answer ;)
>
> cheers,

Very interesting...

$ uname -a
Darwin lilith.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22
14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC Power
Macintosh powerpc
$ ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin7.7.0]

And it works.  BTW, I've coded that on an Athlon XP on Kernel 2.6.0
with ruby 1.8.1...

Has the RNG changed recently?

> Brian
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org