Code Monkey home page Code Monkey logo

Comments (7)

etiganou avatar etiganou commented on May 25, 2024

Τότε που κοιτούσαμε το θέμα της random είχαμε χρησιμοποιήσει την Mersenne Twister της GMP και σκεφτήκαμε ότι θα είναι trully random. Τα test που κάναμε τότε ήταν επειδή στο πρόγραμμα το gen_I γίνεται με 2 τρόπους ανάλογα με το μέγεθος του P_set και ο πρώτος δίνει trully random αλλά της gmp δεν είναι τελικά random. Κάθε φορα που τρέχουμε το πρόγραμμα τα I είναι διαφορετικά σε κάθε γύρω αλλά τα ίδια για κάθε διαφορετική εκτέλεση του προγράμματος

from carmichael.

drazioti avatar drazioti commented on May 25, 2024

#27 the same, whenever I run the code for ./a.out 10 4 3 3 1 1 --ham 11 -b 26 -f 1 always the 8th round will find the solution.

from carmichael.

etiganou avatar etiganou commented on May 25, 2024

Thats because every time the program runs from the beginnnig the same sequence of I1, I2 indexes will appear... gmp_rand_state is not truly random

from carmichael.

etiganou avatar etiganou commented on May 25, 2024

I am searching for a way to create real time random seed

from carmichael.

drazioti avatar drazioti commented on May 25, 2024

there is not something like truly random. To get entropy you can use the urandom of the system. I thought that was something resolved, months ago. Use vassilis code.

from carmichael.

etiganou avatar etiganou commented on May 25, 2024

ναι και γω έτσι πίστευα αλλά η random της gmp δεν δουλεύει όπως λέει

from carmichael.

drazioti avatar drazioti commented on May 25, 2024

One other things that needs care is not to store {01,...,n}, you have to do rejection sample, as the paper describes. I am sure that is not a mistake of gmp..maybe a wrong use of gmp

from carmichael.

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.