Randomness with x86_64 RDRAND and RDSEED instructions for Node.js. For more information: https://www.intel.com/content/www/us/en/developer/articles/guide/intel-digital-random-number-generator-drng-software-implementation-guide.html
Install node-gyp with the following command:
r00t@mirad:~/test_project$ npm install -g node-gyp # run this command with sudo if you are not super-user.And, install the library:
r00t@mirad:~/test_project$ npm init -y
r00t@mirad:~/test_project$ npm i https://github.com/mtkcnl/hw-based-randomnessInclude this library to your project:
const {fillBuffer, getRdrand, getRdseed} = require('hw-rng.js');
// Your code...