I hereby claim:
- I am qwirk on github.
- I am qwirk (https://keybase.io/qwirk) on keybase.
- I have a public key whose fingerprint is 1DE5 D35F FC06 82F7 867B A181 E014 6711 9992 CBCC
To claim this, I am signing this object:
| #include "taskmgr.h" | |
| void taskmgr_UpdateCurrentTime(int Time) | |
| { | |
| //set taskmgr current time | |
| taskmgr_Time = Time; | |
| } | |
| int taskmgr_RegisterTask(int ExecuteAt, void* Function) | |
| { |
| <?php | |
| function prudp_calculate_checksum($hex) { | |
| $hex_dump = str_split($hex, 2); // split hex string into an array every 2 parts | |
| var_dump($hex_dump); | |
| $checksum_result = 1; // 1 because the final output of the checksum is a bit off | |
| foreach ($hex_dump as &$value) { // foreach hex stuff | |
| $checksum_result += hexdec($value); // sum up of all the hex in decimal | |
| } | |
| $checksum_result = $checksum_result % 256; // mod by 256, this is where the magic begins | |
| return dechex($checksum_result); // this should probably be hex? |
I hereby claim:
To claim this, I am signing this object: