• 20th Jul 2023
  • 2 min read


Semi-Random Filename Generator

[] []

This library makes it convenient to generate file names consisting of a date and random characters.

Example usage:

let mut gen = srfng::Generator::new();

println!("{}", gen.generate().as_str());

Which prints out something like:


Which you can use to name a file.

A commandline tool using this crate can be found here.

Coding Style

This project uses a coding style the emphasises the use of white space over keeping the line and column counts as low as possible.

So this:

fn foo()



Not this:

fn foo()


Licensed under either of:

  • Apache License, Version 2.0, (LICENSE-APACHE or (see also:
  • MIT license (LICENSE-MIT or (see also:

at your discretion


Please clone the repository and create an issue explaining what feature or features you'd like to add or bug or bugs you'd like to fix and perhaps how you intend to implement these additions or fixes. Try to include details though it doesn't need to be exhaustive and we'll take it from there (dependant on availability).

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.