Merge pull request #18 from dhardy/master

Prepare 0.1.1 release
This commit is contained in:
Diggory Hardy
2019-04-05 16:25:55 +01:00
committed by GitHub
3 changed files with 10 additions and 1 deletions
+3
View File
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.1.1] - 2019-04-05
- Enable std functionality for CloudABI by default.
## [0.1.0] - 2019-03-23
Publish initial implementation.
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "getrandom"
version = "0.1.0"
version = "0.1.1"
edition = "2018"
authors = ["The Rand Project Developers"]
license = "MIT OR Apache-2.0"
+6
View File
@@ -2,6 +2,12 @@ extern crate getrandom;
use getrandom::getrandom;
#[test]
fn test_zero() {
// Test that APIs are happy with zero-length requests
getrandom(&mut [0u8; 0]).unwrap();
}
#[test]
fn test_diff() {
let mut v1 = [0u8; 1000];