Comments (7)
Τότε που κοιτούσαμε το θέμα της random είχαμε χρησιμοποιήσει την Mersenne Twister της GMP και σκεφτήκαμε ότι θα είναι trully random. Τα test που κάναμε τότε ήταν επειδή στο πρόγραμμα το gen_I γίνεται με 2 τρόπους ανάλογα με το μέγεθος του P_set και ο πρώτος δίνει trully random αλλά της gmp δεν είναι τελικά random. Κάθε φορα που τρέχουμε το πρόγραμμα τα I είναι διαφορετικά σε κάθε γύρω αλλά τα ίδια για κάθε διαφορετική εκτέλεση του προγράμματος
from carmichael.
#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.
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.
I am searching for a way to create real time random seed
from carmichael.
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.
ναι και γω έτσι πίστευα αλλά η random της gmp δεν δουλεύει όπως λέει
from carmichael.
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)
- add travis
- memory leak HOT 2
- git roadmap
- does not have inverse modulo [update#1] HOT 3
- anoying bug
- hashtable size HOT 3
- concerning pullrequest #17 [1] HOT 3
- concerning pullrequest #17 [2] HOT 2
- concerning pullrequest #24 [3] HOT 2
- single core case (concerning pull request #24) HOT 5
- Some chcekings
- checking the input HOT 1
- bug HOT 9
- No randomization option HOT 1
- Optimize parallel algorithm
- Included cpp file
- Add the parameter Q to md5 hash function HOT 9
- Add API
- build make file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carmichael.