secure random implemented on node