commit
c2f13c818a
@ -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,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"
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user