ee7203cd9c
I've apparently needed to Knuth-shuffle a table pretty often, and have reimplemented it multiple times. We should instead assume that the "standard" table.shuffle extension that MT adds should be reasonably "optimal" and just use that everywhere. If it turns out not to be optimal then it's still valuable to consolidate the implementations.
11 lines
105 B
Plaintext
11 lines
105 B
Plaintext
~print
|
|
minetest
|
|
ItemStack
|
|
VoxelArea
|
|
vector
|
|
nodecore
|
|
include
|
|
SecureRandom
|
|
PcgRandom
|
|
profiler
|
|
table.shuffle |