Laytan Laats
e4892f1bb2
os/os2: wasi target support
2025-01-18 22:23:44 +01:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Andreas T Jonsson
7feff1c113
Merged with master
2024-05-02 09:27:46 +02:00
Andreas T Jonsson
9a008d10f3
Merge branch 'master' into netbsd
2024-04-25 22:04:40 +02:00
Andreas T Jonsson
8ffe577a15
Added missing build tags in core
2024-04-25 09:43:54 +02:00
Yawning Angel
a6eb64df6c
core/crypto: Add a HAS_RAND_BYTES constant
2024-04-23 11:47:43 +09:00
Vitalii Kravchenko
befb0f7868
Core Foundation and Security vendor libraries.
2024-04-13 00:11:42 +01:00
Yawning Angel
b155fdf8c9
core/crypto: Add has_rand_bytes
...
This allows runtime detection as to if `rand_bytes` is supported or not,
and lets us enable the test-case on all of the supported targets.
2024-04-09 10:23:58 +09:00
Laytan Laats
88e6980b13
fix build tags
2024-02-13 17:34:40 +01:00
Laytan Laats
3bc172c70b
add crypto.rand_bytes for Darwin and FreeBSD
2024-02-13 17:34:00 +01:00
Damian Tarnawski
11a2b2a942
Add system_random and random_bytes for js target
2023-10-27 00:05:38 +02:00
zhibog
3b4199a669
Added rand_bytes for Windows in core:crypto
2022-03-02 21:22:56 +01:00
Sébastien Marie
5676c9e7eb
initial OpenBSD support
2022-02-25 08:49:25 +00:00
gingerBill
3d7d347192
Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
2022-01-20 19:56:05 +00:00
Yawning Angel
6bafa21bee
crypto: Add rand_bytes
...
This adds `rand_bytes(dst: []byte)` which fills the destination buffer
with entropy from the cryptographic random number generator. This takes
the "simple is best" approach and just directly returns the OS CSPRNG
output instead of doing anything fancy (a la OpenBSD's arc4random).
2021-11-17 14:00:00 +00:00