修复随机数问题

This commit is contained in:
dosg
2019-01-25 11:20:33 +08:00
parent 4de1c4b8bf
commit 2d6c9c19aa
7 changed files with 72 additions and 71 deletions

View File

@@ -16,6 +16,7 @@ using namespace std;
char *rand_str(char *str,const int len)
{
srand(time(0));
int i;
for(i=0;i<len;++i)
str[i]='A'+rand()%26;