diff --git a/AUTHORS b/AUTHORS index f5e1293992b32..849efa274ced6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -358,3 +358,4 @@ a license to everyone to use it as detailed in LICENSE.) * Alexander Frank Lehmann (copyright owned by Compusoft Group) * Tommy Nguyen * Benjamin S. Rodgers +* Paul Shapiro diff --git a/src/library_fs.js b/src/library_fs.js index e5cf6a1aab0e8..feb7758561dc5 100644 --- a/src/library_fs.js +++ b/src/library_fs.js @@ -1301,7 +1301,7 @@ mergeInto(LibraryManager.library, { #endif // ENVIRONMENT_MAY_BE_NODE } else { // default for ES5 platforms - random_device = function() { return (Math.random()*256)|0; }; + random_device = function() { abort("random_device"); /*Math.random() is not safe for random number generation, so this fallback random_device implementation aborts... see kripken/emscripten/pull/7096 */ }; } FS.createDevice('/dev', 'random', random_device); FS.createDevice('/dev', 'urandom', random_device);