Giter Site home page Giter Site logo

Comments (8)

djsan15 avatar djsan15 commented on July 25, 2024 1

Seems like an issue with the way Cryptor.VarNumberLength function provides the seed. This value doesn't change if this function is called multiple times in a row without any operation in between (too fast, eh?).

I created a temporary fix by replacing the call to Cryptor.VarNumberLength with my own function temp_cryptor that adds a 2 millisecond delay after generating the rand string:

func temp_cryptor() string{
    var a = Cryptor.VarNumberLength(4,9)
    time.Sleep(2*time.Millisecond)
    return a
}

from ivy.

Tylous avatar Tylous commented on July 25, 2024 1

Very odd, I have never seen this happen in any of the tools I've developed. Can you try recreating this two more times and see if this happens?

from ivy.

fabinet avatar fabinet commented on July 25, 2024

Yes I had the issue multiple Time on 2 diff windows host. @djsan15 fix is working

from ivy.

Tylous avatar Tylous commented on July 25, 2024

I've tested numerous times on Linux and Mac and discovered this might be an issue related to Windows. Can you confirm by trying one of those.

from ivy.

Tylous avatar Tylous commented on July 25, 2024

I will be updating the code shortly with this time delay.

from ivy.

djsan15 avatar djsan15 commented on July 25, 2024

I have tested on Linux and it seems to be working fine. I would agree that it's an issue for windows machines only.

from ivy.

charnim avatar charnim commented on July 25, 2024

Can confirm having the same issue on windows.

from ivy.

Tylous avatar Tylous commented on July 25, 2024

Added this in version 1.11. Closing issue for now, feel free to reopen if you have future questions.

from ivy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.