I am trying to create a "random" string based on a fixed string. I'd like to be able, if at all possible, create the same random string (i know its an oxymoron) provided I use the same seed. like so:
$base = '0123456789abcdef'; $seed = 'qwe123'; function get_seeded_random_string($base, $seed){ ??? }
The expected behavior would be that as long as I give the same $base
and $seed
I always get the same random string.