An open API service indexing awesome lists of open source software.

https://github.com/aep/feistel

collision-free pseudorandom sequence using a feistel cipher in cycle walking mode
https://github.com/aep/feistel

Last synced: about 1 month ago
JSON representation

collision-free pseudorandom sequence using a feistel cipher in cycle walking mode

Awesome Lists containing this project

README

          

collision-free pseudorandom sequence using a feistel cipher in cycle walking mode.

useful for avoiding hotspots in free-lists, or otherwise obfuscating a unique index.
This is NOT encryption. it just makes a sequence look random to the human eye

for example this generates a sequence from 0 to 1000 in deterministic but random-looking order

```golang
package main

import (
"github.com/aep/feistel"
"fmt"
)

func main() {
var max uint32 = 1000;
for i:=uint32(0);i