antirez/redis — pull request #1272 by charsyam (2013-09-07 13:21:57+00:00)
Title: fix zslRandomLevel - trivial but it has potential bug.

I think it is trivial and It might not be happened.

but it can be run with infinity loop when (random()&0xFFFF) < (ZSKIPLIST_P * 0xFFFF) is always True.

and it can be looped more than ZSKIPLIST_MAXLEVEL

```
while ((random()&0xFFFF) < (ZSKIPLIST_P * 0xFFFF))
```

so this patch will make it loop less or equals than ZSKIPLIST_MAXLEVEL