Support » Plugin: lorem shortcode » [Plugin: lorem shortcode] Enhancement: random seed

  • Sjeiti


    I love your plugin, definately speeds up development.
    One of the things that did always bother me is that every time the same page is visited the text is different.

    So I added something to the ‘pers_lorem_func’ function that might be helpfull:
    // set random seed
    $iSeed = $seed; // <-- added this one here to the extract(shortcode_atts
    $sUri = $_SERVER["REQUEST_URI"];
    for($i=0; $i<strlen($sUri); $i++) $iSeed += ord($sUri[$i]);

    imho a nice to have 🙂



  • The topic ‘[Plugin: lorem shortcode] Enhancement: random seed’ is closed to new replies.