switch to ESM
[benchmarks-js.git] / random.mjs
similarity index 95%
rename from random.js
rename to random.mjs
index 8c0fa86e669b384e4d812478e00b6a61716031c8..f814d3d37344900edacfe5d5190f106d64f92c19 100644 (file)
--- a/random.js
@@ -1,9 +1,9 @@
-const crypto = require('crypto')
-const Benchmark = require('benny')
-const {
+import crypto from 'crypto'
+import Benchmark from 'benny'
+import {
   secureRandom,
   secureRandomWithRandomValues
-} = require('./benchmark-utils')
+} from './benchmark-utils.js'
 
 const maximum = 281474976710654