joyent/node — Issue #2037: Segfault when using randomBytes in a loop 
Author: renajohn
Created: 2011-11-07 14:05:26+00:00
State: open

The following code produce a segmentation fault on Ubuntu 10.10

```
var crypto = require('crypto');

while (true) {
crypto.randomBytes(256, function(ex, buf) {
if (ex) throw ex;
console.log('Have %d bytes of random data: %s', buf.length, buf);
});
}
```