20 lines
353 B
C
20 lines
353 B
C
// Cryptography routines for blankos/libc header
|
|
// Author: xamidev
|
|
// Licensed under the Unlicense. See the repo below.
|
|
// https://github.com/xamidev/blankos
|
|
|
|
#ifndef CRYPTO_H
|
|
#define CRYPTO_H
|
|
|
|
#define RAND_MAX 1024
|
|
|
|
#include <stdint.h>
|
|
|
|
int lcg(int seed);
|
|
int randint(int seed);
|
|
uint32_t rand();
|
|
float rand_float();
|
|
void srand(uint32_t seed);
|
|
|
|
#endif
|