mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 12:09:34 +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 ReferenceNo
|
||||||
class Base
|
class Base
|
||||||
def self.generate
|
def self.generate
|
||||||
new(SecureRandom.random_number(1..1_000_000))
|
new((SecureRandom.random_number(9e5) + 1e5).to_i)
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(base)
|
def initialize(base)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue