mc-beta-server/external/shuffle_seed.ts

8 lines
251 B
TypeScript
Raw Normal View History

2023-04-09 04:19:10 +01:00
// This is free and unencumbered software released into the public domain
export default function shuffleSeed(seed: Uint32Array): Uint32Array {
const newSeed = new Uint32Array(1);
newSeed[0] = seed[0] * 1664525 + 1013904223;
return newSeed;
}