vinkla / hashids

A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
https://hashids.org/php
MIT License
5.28k stars 418 forks source link

different number same result "hashids/hashids": "^3.0", #115

Closed galamz closed 6 years ago

galamz commented 6 years ago

Hi guys,

Code

use Hashids\Hashids;

$hashids = new Hashids();
echo $hashids->encode(215);
echo $hashids->encode(1315);

Result

 // echo 'qOWyZxRAb9Y6aJ0waL3gBo4VzPXKlM7N2Q';
 // echo 'qOWyZxRAb9Y6aJ0waL3gBo4VzPXKlM7N2Q';
vinkla commented 6 years ago

Hey, it seems you're using an old version of the library. Try updating to the latest version.

galamz commented 6 years ago

Hi, i use latest version

"hashids/hashids": "^3.0",