Skip to content

Commit

Permalink
Merge pull request #36 from WebAssembly/pch/require_semicolons
Browse files Browse the repository at this point in the history
wit syntax: use semicolons
  • Loading branch information
Pat Hickey committed Oct 16, 2023
2 parents d1f7984 + 0e8a197 commit 1094cf3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: WebAssembly/wit-abi-up-to-date@v15
- uses: WebAssembly/wit-abi-up-to-date@v16
2 changes: 1 addition & 1 deletion wit/insecure-seed.wit
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ interface insecure-seed {
/// This will likely be changed to a value import, to prevent it from being
/// called multiple times and potentially used for purposes other than DoS
/// protection.
insecure-seed: func() -> tuple<u64, u64>
insecure-seed: func() -> tuple<u64, u64>;
}
4 changes: 2 additions & 2 deletions wit/insecure.wit
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ interface insecure {
/// There are no requirements on the values of the returned bytes, however
/// implementations are encouraged to return evenly distributed values with
/// a long period.
get-insecure-random-bytes: func(len: u64) -> list<u8>
get-insecure-random-bytes: func(len: u64) -> list<u8>;

/// Return an insecure pseudo-random `u64` value.
///
/// This function returns the same type of pseudo-random data as
/// `get-insecure-random-bytes`, represented as a `u64`.
get-insecure-random-u64: func() -> u64
get-insecure-random-u64: func() -> u64;
}
4 changes: 2 additions & 2 deletions wit/random.wit
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ interface random {
/// This function must always return fresh data. Deterministic environments
/// must omit this function, rather than implementing it with deterministic
/// data.
get-random-bytes: func(len: u64) -> list<u8>
get-random-bytes: func(len: u64) -> list<u8>;

/// Return a cryptographically-secure random or pseudo-random `u64` value.
///
/// This function returns the same type of data as `get-random-bytes`,
/// represented as a `u64`.
get-random-u64: func() -> u64
get-random-u64: func() -> u64;
}
8 changes: 4 additions & 4 deletions wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package wasi:random
package wasi:random;

world imports {
import random
import insecure
import insecure-seed
import random;
import insecure;
import insecure-seed;
}

0 comments on commit 1094cf3

Please sign in to comment.