This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function UniformSampler(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
// 1. generate 8 uuidv4 bytes | |
// Would have to be actually random | |
var buffer = | |
"4cbf32ae3046468b9f62b376ef70f3fd52405d54082f449d82a034585c8b6f599353b89b57bd45dcb13c8b9b7c6f33de9461c59897eb4fa9b63666c9c1e867564f95b63671334b0eacbe3c6ae6f8c2d3ef58ce12ea8d467e9ab202feed5c61144388426fd95f4c808e4de4747042eebdbdfc72817800494f9d6af3eeb02c6990"; | |
// ....-....-1..-....-d787dec486fa | |
// the px_uuid |