[Request] XXTEA-CTR Random number generator

Post your work in progress addons and get feedback

Post » Sun Aug 10, 2014 3:29 am

http://www.movable-type.co.uk/scripts/tea-block.html
https://raw.githubusercontent.com/kvz/p ... s/crc32.js

Here's my suggested implementation: encrypt the stream position, and then convert it using crc32. After every function call, increment the stream position by 1.

This could be used for procedural generation. To my knowledge, the mersenne twister (at least a proper implementation) cannot easily seek to a stream position, while this could.

I can't code, so I tried and couldn't do it.
B
9
S
3
G
1
Posts: 191
Reputation: 1,725

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests