mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-16 19:58:25 +00:00
25 lines
574 B
C
25 lines
574 B
C
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef _SHARED_H
|
|
#define _SHARED_H
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
u32 get_random_num (const u32 min, const u32 max);
|
|
|
|
u32 mydivc32 (const u32 dividend, const u32 divisor);
|
|
u64 mydivc64 (const u64 dividend, const u64 divisor);
|
|
|
|
void naive_replace (char *s, const u8 key_char, const u8 replace_char);
|
|
void naive_escape (char *s, size_t s_max, const u8 key_char, const u8 escape_char);
|
|
|
|
void hc_sleep_ms (const int msec);
|
|
void hc_sleep (const int sec);
|
|
|
|
#endif // _SHARED_H
|