NEAR-RNG

This is a fork of tiny-rng https://github.com/JohnBSmith/tiny-rng to work with smart contract of the NEAR protocol to minimize the binary size of the wasm

Warning: Not cryptographically secure.

Examples:

```rust use nearsdk::borsh::{self, BorshDeserialize, BorshSerialize}; use nearsdk::{env, nearbindgen}; use nearrng::{Rng};

nearsdk::setupalloc!();

[near_bindgen]

[derive(Default, BorshDeserialize, BorshSerialize)]

pub struct Counter { val: i32, }

[near_bindgen]

impl Counter { pub fn increment(&mut self) { let mut rng = Rng::new(&env::randomseed()); let value = rng.randrange_i32(0, 20); self.val += value; } } ```