mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix entropy
This commit is contained in:
@@ -100,6 +100,11 @@ fn char[8 * 4] entropy() @if(env::WASM_NOLIBC)
|
||||
hash($$TIME),
|
||||
hash(&entropy),
|
||||
random_int,
|
||||
hash($$TIME),
|
||||
hash(&entropy),
|
||||
random_int,
|
||||
hash($$TIME),
|
||||
hash(&entropy),
|
||||
};
|
||||
return bitcast(entropy_data, char[8 * 4]);
|
||||
}
|
||||
Reference in New Issue
Block a user