mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
js: fix object id generator
This commit is contained in:
parent
eed44998f0
commit
348b71685d
|
@ -18,7 +18,7 @@ var $rt_seed = 2463534242;
|
||||||
function $rt_nextId() {
|
function $rt_nextId() {
|
||||||
var x = $rt_seed;
|
var x = $rt_seed;
|
||||||
x ^= x << 13;
|
x ^= x << 13;
|
||||||
x ^= x >> 17;
|
x ^= x >>> 17;
|
||||||
x ^= x << 5;
|
x ^= x << 5;
|
||||||
$rt_seed = x;
|
$rt_seed = x;
|
||||||
return x;
|
return x;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user