From 220a7b91cd050e894964184deb033c9be8174ef3 Mon Sep 17 00:00:00 2001 From: Bailey Hayes Date: Tue, 16 Sep 2025 17:49:35 -0400 Subject: [PATCH] Revert "Update 0.3.0 WIT definitions to 0.3.0-rc-2025-09-16-1" --- wit-0.3.0-draft/insecure-seed.wit | 6 +++--- wit-0.3.0-draft/insecure.wit | 8 ++++---- wit-0.3.0-draft/random.wit | 8 ++++---- wit-0.3.0-draft/world.wit | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/wit-0.3.0-draft/insecure-seed.wit b/wit-0.3.0-draft/insecure-seed.wit index 155a88f..ecd5043 100644 --- a/wit-0.3.0-draft/insecure-seed.wit +++ b/wit-0.3.0-draft/insecure-seed.wit @@ -1,9 +1,9 @@ -package wasi:random@0.3.0-rc-2025-09-16-1; +package wasi:random@0.3.0-rc-2025-08-15; /// The insecure-seed interface for seeding hash-map DoS resistance. /// /// It is intended to be portable at least between Unix-family platforms and /// Windows. -@since(version = 0.3.0-rc-2025-09-16-1) +@since(version = 0.3.0-rc-2025-08-15) interface insecure-seed { /// Return a 128-bit value that may contain a pseudo-random value. /// @@ -22,6 +22,6 @@ 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. - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) get-insecure-seed: func() -> tuple; } diff --git a/wit-0.3.0-draft/insecure.wit b/wit-0.3.0-draft/insecure.wit index 2b190a4..d08d85e 100644 --- a/wit-0.3.0-draft/insecure.wit +++ b/wit-0.3.0-draft/insecure.wit @@ -1,9 +1,9 @@ -package wasi:random@0.3.0-rc-2025-09-16-1; +package wasi:random@0.3.0-rc-2025-08-15; /// The insecure interface for insecure pseudo-random numbers. /// /// It is intended to be portable at least between Unix-family platforms and /// Windows. -@since(version = 0.3.0-rc-2025-09-16-1) +@since(version = 0.3.0-rc-2025-08-15) interface insecure { /// Return `len` insecure pseudo-random bytes. /// @@ -13,13 +13,13 @@ 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. - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) get-insecure-random-bytes: func(len: u64) -> list; /// 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`. - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) get-insecure-random-u64: func() -> u64; } diff --git a/wit-0.3.0-draft/random.wit b/wit-0.3.0-draft/random.wit index 620d82c..3808c30 100644 --- a/wit-0.3.0-draft/random.wit +++ b/wit-0.3.0-draft/random.wit @@ -1,9 +1,9 @@ -package wasi:random@0.3.0-rc-2025-09-16-1; +package wasi:random@0.3.0-rc-2025-08-15; /// WASI Random is a random data API. /// /// It is intended to be portable at least between Unix-family platforms and /// Windows. -@since(version = 0.3.0-rc-2025-09-16-1) +@since(version = 0.3.0-rc-2025-08-15) interface random { /// Return `len` cryptographically-secure random or pseudo-random bytes. /// @@ -17,13 +17,13 @@ interface random { /// This function must always return fresh data. Deterministic environments /// must omit this function, rather than implementing it with deterministic /// data. - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) get-random-bytes: func(len: u64) -> list; /// 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`. - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) get-random-u64: func() -> u64; } diff --git a/wit-0.3.0-draft/world.wit b/wit-0.3.0-draft/world.wit index e7ce971..e8f05cc 100644 --- a/wit-0.3.0-draft/world.wit +++ b/wit-0.3.0-draft/world.wit @@ -1,13 +1,13 @@ -package wasi:random@0.3.0-rc-2025-09-16-1; +package wasi:random@0.3.0-rc-2025-08-15; -@since(version = 0.3.0-rc-2025-09-16-1) +@since(version = 0.3.0-rc-2025-08-15) world imports { - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) import random; - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) import insecure; - @since(version = 0.3.0-rc-2025-09-16-1) + @since(version = 0.3.0-rc-2025-08-15) import insecure-seed; }