@syncot/util
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,2 +0,2 @@ | ||
import { randomFillSync } from 'crypto'; | ||
import { randomInteger } from './random'; | ||
export function noop() { | ||
@@ -18,3 +18,4 @@ // Do nothing. | ||
const randomIdBuffer = Buffer.allocUnsafeSlow(12); | ||
randomFillSync(randomIdBuffer, 4); | ||
randomIdBuffer.writeUInt32BE(randomInteger(0, 0x100000000), 4); | ||
randomIdBuffer.writeUInt32BE(randomInteger(0, 0x100000000), 8); | ||
let randomIdCounter = randomIdBuffer.readUIntBE(9, 3); | ||
@@ -21,0 +22,0 @@ /** |
{ | ||
"name": "@syncot/util", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A collection of utilities required by other @syncot modules.", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "888dd1570ed3023173b3b5bbafad0f29271b246f" | ||
"gitHead": "59f7016cbffea18fc14049e00fd4351c08748887" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25073
636