Hi, is generating a deterministic random number possible in CryptoPP?

        Integer i;
        cout<<"Please Enter an Integer:";
        cin>>i;

        Integer r;
        RandomPool rng;
        byte b=i.GetByte(1);


        rng.Put(&b, 8);
        r.Randomize(rng,4);
        cout<<r<<endl;


I wish to generate random number r using part of user input number i
as seed.

But it came out different number every time.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to