joyent/node — pull request #6135 by bnoordhuis (2013-08-27 19:15:55+00:00)
Title: crypto: make randomBytes/pbkdf2 cbs domain aware

Make the crypto.randomBytes() and crypto.pbkdf2() callback functions
run inside the current domain (if any.)

Fixes #3965.

Suggested reviewer: @isaacs - mostly to check if the test actually tests proper domain usage.