I found it was calling itself over and over again, rather than calling the stdlib rand(). This wasn't the desired behavior... Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>