Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there any random function other than rand() in c++?
#3
Fiel Wrote:rand() is not a function that is suitable for cryptographic purposes anyway. Most programs use epoch time to seed the generator. Attackers can use that information to gain more information about the program or force an unrandom state.

lol... I've been using it for my algorithms cryptography assignment. Although that is just a test program that will never be used for any real application. It's annoying that there is no better way of generating random numbers built into C/C++. (Although I guess it'd be really really hard to do)
Reply


Messages In This Thread
Is there any random function other than rand() in c++? - by Heidi - 2011-08-06, 04:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)