mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
22 lines
324 B
C
22 lines
324 B
C
|
|
#include <stdio.h>
|
||
|
|
#include <inttypes.h>
|
||
|
|
|
||
|
|
#include "mfshell.h"
|
||
|
|
#include "private.h"
|
||
|
|
|
||
|
|
void
|
||
|
|
_update_secret_key(mfshell_t *mfshell)
|
||
|
|
{
|
||
|
|
uint64_t new_val;
|
||
|
|
|
||
|
|
if(mfshell == NULL) return;
|
||
|
|
|
||
|
|
new_val = ((uint64_t)mfshell->secret_key) * 16807;
|
||
|
|
new_val %= 0x7FFFFFFF;
|
||
|
|
|
||
|
|
mfshell->secret_key = new_val;
|
||
|
|
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|