Last active
January 29, 2017 08:39
-
-
Save segfo/bf76a6875734dea470ec0f5177f47b72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
// 例のテーブル | |
char tbl[]={ | |
0x4,0xb2,0xf,0x47,0x33,0x84,0x7f,0xdd,0x44,0xbd,0xd6,0x98,0xad, | |
0x83,0xd3,0x34,0x23,0xa1,0x65,0x88,0x73,0xdb,0x95,0xf0 | |
}; | |
// randで生成される数値列を固定する | |
srand(0); | |
int i=0; | |
for(i = 0;i<sizeof(tbl);i++){ | |
// 例のテーブルとrandで生成された値をXORする | |
printf("%c",rand()^tbl[i]); | |
} | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment