Skip to content

Instantly share code, notes, and snippets.

@sunnyluthra
Last active August 29, 2015 14:27
Show Gist options
  • Save sunnyluthra/e8116dde0d7acab9d108 to your computer and use it in GitHub Desktop.
Save sunnyluthra/e8116dde0d7acab9d108 to your computer and use it in GitHub Desktop.

Revisions

  1. sunnyluthra revised this gist Aug 19, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions random_token.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    function generate_token() {
    return bin2hex(openssl_random_pseudo_bytes($this->token_length));
    }
    return bin2hex(openssl_random_pseudo_bytes($this->token_length));
    }
  2. sunnyluthra created this gist Aug 19, 2015.
    3 changes: 3 additions & 0 deletions random_token.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function generate_token() {
    return bin2hex(openssl_random_pseudo_bytes($this->token_length));
    }