Skip to content

Commit

Permalink
Version bump (v0.1.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
skinkade committed Aug 24, 2021
1 parent efc58a4 commit 21232d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).

## [0.1.1]
### Changed
- Use goog.crypt in internals.util-js in place of base64-js dependency and homebrew hex encode

## [0.1.0]
### Added
JVM and ClojureScript support for cryptographically-random:
Expand All @@ -12,5 +16,5 @@ JVM and ClojureScript support for cryptographically-random:
- collection samples
- passwords/passphrases


[0.1.1]: https://github.com/skinkade/uniformity/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/skinkade/uniformity/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject uniformity "0.1.0"
(defproject io.github.skinkade/uniformity "0.1.1"
:description "A Clojure(Script) library for easy-to-use cryptographic primitives and utilities, aiming for uniform behavior between Clojure platform targets"
:url "https://github.com/skinkade/uniformity"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
6 changes: 3 additions & 3 deletions src/uniformity/random.cljc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns uniformity.random
(:require [clojure.set :refer [intersection]]
[clojure.string :refer [join replace]]
[clojure.string :as string]
[uniformity.util :as util]
#?(:clj [uniformity.internals.rand-java :as internals]
:cljs [uniformity.internals.rand-js :as internals])))
Expand Down Expand Up @@ -87,7 +87,7 @@
(when (contains? opts :digits) "0123456789")
(when (contains? opts :special) "!@#$%^&*-_+=")])]
(if (contains? opts :non-ambiguous)
(rand-password length (replace mask #"[O01Il]" ""))
(rand-password length (string/replace mask #"[O01Il]" ""))
(rand-password length mask))))))

(defn rand-passphrase
Expand All @@ -97,4 +97,4 @@
{:pre [(> length 0)
(and (coll? wordlist) (> (count wordlist) 0))
(or (string? delimiter) (char? delimiter))]}
(join delimiter (rand-selection wordlist length))))
(string/join delimiter (rand-selection wordlist length))))

0 comments on commit 21232d6

Please sign in to comment.