-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add "artifical_sample" * Rename `sinks` to `seeding_functions` * Use `expect()` instead of `unwrap()` for the `Config` * Bail early if either there are no sinks or no sources * Only use one `computation` instead of one per call to a source.
- Loading branch information
Pascal Beyer
committed
Feb 20, 2024
1 parent
06fc825
commit 37e4234
Showing
4 changed files
with
56 additions
and
45 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 |
---|---|---|
|
@@ -85,7 +85,7 @@ | |
"sources": [ | ||
"time" | ||
], | ||
"sinks": [ | ||
"seeding_functions": [ | ||
"srand" | ||
] | ||
}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
#include <time.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
|
||
int main(int argc, char *argv[]){ | ||
srand(time(NULL)); | ||
return rand(); | ||
} | ||
|
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