mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Always generate reference_no of length 7
This commit is contained in:
parent
a408881897
commit
05ca909741
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ module Billing
|
|||
class ReferenceNo
|
||||
class Base
|
||||
def self.generate
|
||||
new(SecureRandom.random_number(1..1_000_000))
|
||||
new((SecureRandom.random_number(9e5) + 1e5).to_i)
|
||||
end
|
||||
|
||||
def initialize(base)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue