Skip to content

Commit bcbf7a2

Browse files
committed
fix rseed() param validation
1 parent f0386ca commit bcbf7a2

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "litecanvas",
3-
"version": "0.98.3",
3+
"version": "0.98.4",
44
"description": "Lightweight HTML5 canvas 2D game engine suitable for small projects and creative coding. Inspired by PICO-8 and p5.js/Processing.",
55
"license": "MIT",
66
"author": "Luiz Bills <luizbills@pm.me>",

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,9 @@ export default function litecanvas(settings = {}) {
351351
*/
352352
rseed(value) {
353353
DEV: assert(
354-
null == value || (isNumber(value) && value >= 0),
355-
'[litecanvas] rseed() 1st param must be a positive number or zero'
354+
isNumber(value) && value >= 0,
355+
'[litecanvas] rseed() 1st param must be a positive integer or zero'
356356
)
357-
358357
_rngSeed = ~~value
359358
},
360359

src/version.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)