-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed maps and added random number generator proto (#8)
- Loading branch information
Showing
3 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** @file random.h | ||
* @brief Function prototypes for random numbers. | ||
* | ||
* The first call to the generator creates a seed for subsequent calls. | ||
* On the Pico, the documentation states that "methods may be safely called from either core | ||
* or from an IRQ, but be careful in the latter case as the calls may block for a number of | ||
* microseconds waiting on more entropy" | ||
*/ | ||
#ifndef FUSE_RANDOM_H | ||
#define FUSE_RANDOM_H | ||
#include <stdint.h> | ||
|
||
/** @brief Return a random unsigned 32 bit number | ||
* | ||
* @return An unsigned 32 bit number | ||
*/ | ||
uint32_t rand_u32(); | ||
|
||
|
||
/** @brief Return a random unsigned 64 bit number | ||
* | ||
* @return An unsigned 64 bit number | ||
*/ | ||
uint64_t rand_u64(); | ||
|
||
#endif /* FUSE_RANDOM_H */ |
This file contains 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
This file contains 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