nfarring/redisrpc — pull request #3 by yaauie (2012-04-18 23:30:14+00:00)
Title: ruby: only use one call to rand

replaces the `rand_string` method with one that is a little less versatile (always contains characters that match `/[0-9A-Z]/`) but 10x faster with lower memory allocation and a single call to `rand()` as opposed to one per character.

Since we're not calling any args on this, it should be an adequate replacement, although it does support the size arg should it be needed.