@dicebear/core 5.0.0-beta.9 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/prng.js +2 -0
- package/package.json +3 -3
package/lib/utils/prng.js
CHANGED
|
@@ -15,6 +15,8 @@ function hashSeed(seed) {
|
|
|
15
15
|
return hash;
|
|
16
16
|
}
|
|
17
17
|
export function create(seed = '') {
|
|
18
|
+
// Ensure that seed is a string
|
|
19
|
+
seed = seed.toString();
|
|
18
20
|
let value = hashSeed(seed) || 1;
|
|
19
21
|
const next = () => (value = xorshift(value));
|
|
20
22
|
const integer = (min, max) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "An avatar library for designers and developers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"avatar",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test": "uvu tests"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@dicebear/converter": "^5.0.
|
|
35
|
+
"@dicebear/converter": "^5.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@tsconfig/recommended": "^1.0.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2853e690ca9908cf78108bad39284c9de15a471e"
|
|
50
50
|
}
|