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.27k stars 417 forks source link

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

Closed galamz closed 6 years ago

galamz commented 6 years ago

` $hashids = new Hashids('megas',30);

    echo $hashids->encode(215).'<br>';
    echo $hashids->encode(1315).'<br>';`

WyZxRAb9Y6aJ0waL3gBo4VzPXKlM7N<br> WyZxRAb9Y6aJ0wal3gBo4VzPXKlM7N<br>

use latest version 3.0

vinkla commented 6 years ago

It does not seem like you've added the failing tests to the test suite?

galamz commented 6 years ago

What right suite should I add to it? anyway, did you run this code?

vinkla commented 6 years ago

I want you to submit a pull request with your failing code. This way we can see if this is actually a bug or if this is something with your environment. When you've added the failing code to this project it will automagically be processed by Travis and it will show either red or green depending on if it fails or not.

galamz commented 6 years ago

yes thank you .